projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added 'company_logo_on_views' in sys_prefs in the default sql charts.
[fa-stable.git]
/
includes
/
db_pager.inc
diff --git
a/includes/db_pager.inc
b/includes/db_pager.inc
index affb9e09796e9cf046abdb0998817ed533eac076..e3f3b167ad777ccdf87d77dd12d4092fdeb5a95f 100644
(file)
--- a/
includes/db_pager.inc
+++ b/
includes/db_pager.inc
@@
-349,7
+349,8
@@
class db_pager {
if ($result == false)
return false;
$row = db_fetch_row($result);
- $this->rec_count = $row[0];
+ $this->rec_count = is_array($row) ? $row[0] : 0;
+;
$this->max_page = $this->page_len ?
ceil($this->rec_count/$this->page_len) : 0;