projects
/
iserv-mod-error-reporter.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
heading for reported errors is only shown if there are already reported errors
[iserv-mod-error-reporter.git]
/
inc
/
class_erErrorReportManager.inc
diff --git
a/inc/class_erErrorReportManager.inc
b/inc/class_erErrorReportManager.inc
index
1536159
..
b3fd64d
100644
(file)
--- a/
inc/class_erErrorReportManager.inc
+++ b/
inc/class_erErrorReportManager.inc
@@
-135,6
+135,15
@@
class erErrorReportManager {
* @name Quering
* @{ */
* @name Quering
* @{ */
+ /**
+ * Get the number of reported errors
+ * @return int
+ */
+ public function getNumErrorReports() {
+ $ar = pg_fetch_array(db_query("SELECT COUNT(*) AS count FROM mod_errorreporter;"), 0);
+ return intval($ar["count"]);
+ }
+
/**
* Get all error reports in the database.
* If this function fails, it returns <tt>null</tt>. Call getLastError() to get more information.
/**
* Get all error reports in the database.
* If this function fails, it returns <tt>null</tt>. Call getLastError() to get more information.
This page took
0.025567 seconds
and
4
git commands to generate.