logo       

CVS: phpwiki/lib WikiDB.php,1.123,1.124: msg#00183

web.wiki.phpwiki.checkins

Subject: CVS: phpwiki/lib WikiDB.php,1.123,1.124

Update of /cvsroot/phpwiki/phpwiki/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5988

Modified Files:
WikiDB.php
Log Message:
protect against empty request: on some occasion this happens

Index: WikiDB.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/WikiDB.php,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -2 -b -p -d -r1.123 -r1.124
--- WikiDB.php 25 Jan 2005 06:58:21 -0000 1.123
+++ WikiDB.php 29 Jan 2005 20:43:32 -0000 1.124
@@ -117,5 +117,5 @@ class WikiDB {

$this->_cache = new WikiDB_cache($backend);
- $GLOBALS['request']->_dbi = $this;
+ if (!empty($GLOBALS['request'])) $GLOBALS['request']->_dbi = $this;

// If the database doesn't yet have a timestamp, initialize it now.
@@ -2140,4 +2140,7 @@ function _sql_debuglog_shutdown_function

// $Log$
+// Revision 1.124 2005/01/29 20:43:32 rurban
+// protect against empty request: on some occasion this happens
+//
// Revision 1.123 2005/01/25 06:58:21 rurban
// reformatting



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise