Close Connection when there is no connection value.

* If there is no $connection value, a server error message would be written on your server log.(PHP can not handle it.)

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13162 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2013-09-25 16:14:08 +00:00
parent f70ce644ce
commit e2e1f5f2c1

View file

@ -190,6 +190,11 @@ class DBMysql extends DB
*/
function __query($query, $connection)
{
if(!$connection)
{
Context::close();
exit();
}
// Run the query statement
$result = mysql_query($query, $connection);
// Error Check