forked from extern/egroupware
* dont give sql error in gathering statistic data, if table does not exists (eg. Gallery is not installed)
This commit is contained in:
parent
6e8e8a8986
commit
938a999ab0
@ -276,8 +276,13 @@ return true;";
|
|||||||
);
|
);
|
||||||
if (($table = $app2table[$app]))
|
if (($table = $app2table[$app]))
|
||||||
{
|
{
|
||||||
$entries = (int)$GLOBALS['egw']->db->query('SELECT COUNT(*) FROM '.$table)->fetchColumn();
|
try {
|
||||||
//echo "$app ($table): $entries<br />\n";
|
$entries = (int)$GLOBALS['egw']->db->query('SELECT COUNT(*) FROM '.$table)->fetchColumn();
|
||||||
|
//echo "$app ($table): $entries<br />\n";
|
||||||
|
}
|
||||||
|
catch(egw_exception_db $e) {
|
||||||
|
$entries = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $entries;
|
return $entries;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user