Revision: 3014
https://sourceforge.net/p/mrbs/code/3014/
Author: cimorrison
Date: 2015-03-15 09:47:32 +0000 (Sun, 15 Mar 2015)
Log Message:
-----------
Made error handling consistent by always using object oriented rather than
procedural style
Modified Paths:
--------------
mrbs/trunk/web/mysqli.inc
Modified: mrbs/trunk/web/mysqli.inc
===================================================================
--- mrbs/trunk/web/mysqli.inc 2015-03-15 09:38:00 UTC (rev 3013)
+++ mrbs/trunk/web/mysqli.inc 2015-03-15 09:47:32 UTC (rev 3014)
@@ -193,7 +193,7 @@
if ($result < 0)
{
- trigger_error (sql_mysqli_error($db_conn), E_USER_WARNING);
+ trigger_error ($db_conn->error, E_USER_WARNING);
}
}
@@ -205,7 +205,7 @@
if ($result < 0)
{
- trigger_error (sql_mysqli_error($db_conn), E_USER_WARNING);
+ trigger_error ($db_conn->error, E_USER_WARNING);
}
}
@@ -217,7 +217,7 @@
if ($result < 0)
{
- trigger_error (sql_mysqli_error($db_conn), E_USER_WARNING);
+ trigger_error ($db_conn->error, E_USER_WARNING);
}
}
@@ -494,7 +494,7 @@
$res = sql_mysqli_query("SHOW COLUMNS FROM $table");
if ($res === FALSE)
{
- trigger_error(mysqli_error($db_conn), E_USER_WARNING);
+ trigger_error($db_conn->error, E_USER_WARNING);
fatal_error(TRUE, get_vocab("fatal_db_error"));
}
else
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits