Revision: 1230
http://mrbs.svn.sourceforge.net/mrbs/?rev=1230&view=rev
Author: cimorrison
Date: 2009-10-22 16:21:18 +0000 (Thu, 22 Oct 2009)
Log Message:
-----------
Added error checking after the first SQL query. (Although there is some error
checking after the second query, it is never reached if there's an error in the
SQL predicate, or the first SQL query generally, and MRBS just incorrectly
reports that there are no entries matching the search string).
Modified Paths:
--------------
mrbs/trunk/web/search.php
Modified: mrbs/trunk/web/search.php
===================================================================
--- mrbs/trunk/web/search.php 2009-10-22 16:16:22 UTC (rev 1229)
+++ mrbs/trunk/web/search.php 2009-10-22 16:21:18 UTC (rev 1230)
@@ -130,7 +130,10 @@
FROM $tbl_entry E, $tbl_room R, $tbl_area A
WHERE $sql_pred");
}
-
+if ($total < 0)
+{
+ fatal_error(0, sql_error());
+}
if ($total <= 0)
{
echo "<p id=\"nothing_found\">" . get_vocab("nothing_found") . "</p>\n";
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits