Update init_tr.php

This commit is contained in:
Roman Kelesidis 2023-10-19 22:07:15 +07:00
parent 3b71df0f64
commit 9395783ddd

View File

@ -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;
}
/**