function _DatabaseHandler::db_num_rows

4.x _DatabaseHandler.php _DatabaseHandler::db_num_rows($result)
5.x _DatabaseHandler.php _DatabaseHandler::db_num_rows($result)

File

classes/_DatabaseHandler.php, line 1840

Class

_DatabaseHandler

Code

function db_num_rows($result) {
  if (!is_object($result)) {
    return FALSE;
  }

  return $result->rowCount();
}