mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update init_tr.php
This commit is contained in:
parent
3b71df0f64
commit
9395783ddd
@ -325,20 +325,14 @@ class sql_db
|
||||
*/
|
||||
function sql_error ()
|
||||
{
|
||||
$return_ary = array(
|
||||
'code' => '',
|
||||
'message' => 'not connected',
|
||||
);
|
||||
|
||||
if (is_resource($this->link))
|
||||
{
|
||||
$return_ary = array(
|
||||
'code' => mysql_errno($this->link),
|
||||
'message' => mysql_error($this->link),
|
||||
);
|
||||
return array('code' => mysql_errno($this->link), 'message' => mysql_error($this->link));
|
||||
}
|
||||
else
|
||||
{
|
||||
return array('code' => '', 'message' => 'not connected');
|
||||
}
|
||||
|
||||
return $return_ary;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user