mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
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:
parent
f70ce644ce
commit
e2e1f5f2c1
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue