diff -urpN drupal-6.x-dev-200708130038/modules/system/system.install drupal-6.x-dev-rmnumrow-0.9.3/modules/system/system.install --- drupal-6.x-dev-200708130038/modules/system/system.install 2007-08-13 00:12:00.000000000 +0800 +++ drupal-6.x-dev-rmnumrow-0.9.3/modules/system/system.install 2007-08-13 00:51:53.000000000 +0800 @@ -2169,7 +2169,8 @@ function system_update_179() { $limit = 20; $args = array_merge(array($_SESSION['system_update_179_uid'], $_SESSION['system_update_179_fid'], $_SESSION['system_update_179_uid']), $_SESSION['system_update_179_fields']); $result = db_query_range("SELECT fid, uid, value FROM {profile_values} WHERE ((uid = %d AND fid > %d) OR uid > %d) AND fid IN ". $_SESSION['system_update_179_field_string'] .' ORDER BY uid ASC, fid ASC', $args, 0, $limit); - $num_rows = 0; + + $num_rows = FALSE; while ($field = db_fetch_object($result)) { $_SESSION['system_update_179_uid'] = $field->uid; $_SESSION['system_update_179_fid'] = $field->fid; @@ -2177,11 +2178,11 @@ function system_update_179() { if ($field->value !== FALSE) { db_query("UPDATE {profile_values} SET value = '%s' WHERE uid = %d AND fid = %d", $field->value, $field->uid, $field->fid); } - $num_rows++; + $num_rows = TRUE; } // Done? - if ($num_rows == 0) { + if (!$num_rows) { unset($_SESSION['system_update_179_uid']); unset($_SESSION['system_update_179_fid']); unset($_SESSION['system_update_179_max']); diff -urpN drupal-6.x-dev-200708130038/modules/taxonomy/taxonomy.module drupal-6.x-dev-rmnumrow-0.9.3/modules/taxonomy/taxonomy.module --- drupal-6.x-dev-200708130038/modules/taxonomy/taxonomy.module 2007-08-13 00:12:00.000000000 +0800 +++ drupal-6.x-dev-rmnumrow-0.9.3/modules/taxonomy/taxonomy.module 2007-08-13 00:50:46.000000000 +0800 @@ -983,12 +983,12 @@ function taxonomy_select_nodes($tids = a */ function taxonomy_render_nodes($result) { $output = ''; - $num_rows = 0; + $num_rows = FALSE; while ($node = db_fetch_object($result)) { $output .= node_view(node_load($node->nid), 1); - $num_rows++; + $num_rows = TRUE; } - if ($num_rows > 0) { + if ($num_rows) { $output .= theme('pager', NULL, variable_get('default_nodes_main', 10), 0); } else { diff -urpN drupal-6.x-dev-200708130038/modules/user/user.module drupal-6.x-dev-rmnumrow-0.9.3/modules/user/user.module --- drupal-6.x-dev-200708130038/modules/user/user.module 2007-08-13 00:12:00.000000000 +0800 +++ drupal-6.x-dev-rmnumrow-0.9.3/modules/user/user.module 2007-08-13 00:50:20.000000000 +0800 @@ -1096,12 +1096,12 @@ function user_current_to_arg($arg) { function user_get_authmaps($authname = NULL) { $result = db_query("SELECT authname, module FROM {authmap} WHERE authname = '%s'", $authname); $authmaps = array(); - $num_rows = 0; + $num_rows = FALSE; while ($authmap = db_fetch_object($result)) { $authmaps[$authmap->module] = $authmap->authname; - $num_rows++; + $num_rows = TRUE; } - return $num_rows > 0 ? $authmaps : 0; + return $num_rows ? $authmaps : 0; } function user_set_authmaps($account, $authmaps) {