You are here

function bb2_db_num_rows in Bad Behavior 6.2

Same name and namespace in other branches
  1. 5.2 badbehavior.module \bb2_db_num_rows()
  2. 6 badbehavior.module \bb2_db_num_rows()

File

./badbehavior.module, line 142
Integrates Bad Behavior with Drupal

Code

function bb2_db_num_rows($result) {
  if ($result != FALSE) {
    return count($result);
  }
  return 0;
}