Skip to content

Commit

Permalink
MDL-12158 Applied Matt's patch, merging from 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Feb 5, 2008
1 parent 93f56c2 commit 502e8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dmllib.php
Expand Up @@ -371,7 +371,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 502e8e4

Please sign in to comment.