Skip to content

Commit

Permalink
MDL-12158 Applied Matt's patch, merging from 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Feb 5, 2008
1 parent 84620a0 commit 85ca368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dmllib.php
Expand Up @@ -353,7 +353,7 @@ function count_records_select($table, $select='', $countitem='COUNT(*)') {
function count_records_sql($sql) {
$rs = get_recordset_sql($sql);

if ($rs) {
if (is_object($rs) and is_array($rs->fields)) {
return reset($rs->fields);
} else {
return 0;
Expand Down

0 comments on commit 85ca368

Please sign in to comment.