cvs: docweb /www revcheck.php
| From: | Vincent Gevers | Date: | Sun, 31 Oct 2004 16:05:28 +0000 |
| Subject: | cvs: docweb /www revcheck.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-387@lists.php.net to get a copy of this message | ||
vincent Sun Oct 31 11:05:28 2004 EDT
Modified files:
/docweb/www revcheck.php
Log:
Kill another warning (sqlite will try to create an empty db, the query
fails with a no such table)
http://cvs.php.net/diff.php/docweb/www/revcheck.php?r1=1.11&r2=1.12&ty=u
Index: docweb/www/revcheck.php
diff -u docweb/www/revcheck.php:1.11 docweb/www/revcheck.php:1.12
--- docweb/www/revcheck.php:1.11 Sun Oct 31 10:52:53 2004
+++ docweb/www/revcheck.php Sun Oct 31 11:05:28 2004
@@ -1,5 +1,5 @@
<?php
-/* $Id: revcheck.php,v 1.11 2004/10/31 15:52:53 nlopess Exp $ */
+/* $Id: revcheck.php,v 1.12 2004/10/31 16:05:28 vincent Exp $ */
include '../include/init.inc.php';
include '../include/lib_revcheck.inc.php';
@@ -50,7 +50,7 @@
}
}
$sql = "SELECT charset FROM description WHERE lang='" . LANGC . "';";
-if (!($dbhandle = @sqlite_open($DBLANG)) || !($res = sqlite_query($dbhandle, $sql)) ||
!sqlite_num_rows($res))
+if (!($dbhandle = @sqlite_open($DBLANG)) || !($res = @sqlite_query($dbhandle, $sql)) ||
!sqlite_num_rows($res))
{
// if there's no description, there's no documentation
echo site_header('docweb.common.header.revcheck');