diff options
author | Dries Buytaert <dries@buytaert.net> | 2000-10-19 13:31:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2000-10-19 13:31:23 +0000 |
commit | 11ee95dadc408e16e9832af9fd0b41495e78b0a6 (patch) | |
tree | a8f5ca3387e360b37d0eafc4edfdc5fdc52d3b87 /includes/database.inc | |
parent | 43af5a7389265891770e4a283e4748678754797f (diff) | |
download | brdo-11ee95dadc408e16e9832af9fd0b41495e78b0a6.tar.gz brdo-11ee95dadc408e16e9832af9fd0b41495e78b0a6.tar.bz2 |
A big, fat commit with a shitload of internal changes. Not that much
visual changes:
- removed redundant files user.class.php, calendar.class.php
and backend.class.php.
- converted *all* mysql queries to queries supported by the
database abstraction layer.
- expanded the watchdog to record more information on what
actually happened.
- bugfix: anonymous readers where not able to view comments.
- bugfix: anonymous readers could gain read-only access to
the submission queue.
- bugfix: invalid includes in backend.php
- bugfix: invalid use of '$user->block'
and last but not least:
- redid 50% of the user account system
Diffstat (limited to 'includes/database.inc')
-rw-r--r-- | includes/database.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/database.inc b/includes/database.inc index 3721fbd65..843cb270a 100644 --- a/includes/database.inc +++ b/includes/database.inc @@ -26,9 +26,8 @@ function db_query($query, $debug = false) { $qid = mysql_query($query); ### debug output (if required): - if ($debug || empty($qid)) { - print "<PRE>query: ". htmlspecialchars($query) ."<BR>error message: ". mysql_error() ."</PRE>"; - } + if ($debug || empty($qid)) print "<PRE>query: ". htmlspecialchars($query) ."<BR>error message: ". mysql_error() ."</PRE>"; + if (empty($qid)) watchdog(3, "error: ". mysql_error() ."<BR>query: ". htmlspecialchars($query) .""); ### return result from query: return $qid; |