diff --git a/src/wrapper-mysql.php b/src/wrapper-mysql.php index 49b8d0f..92b185a 100644 --- a/src/wrapper-mysql.php +++ b/src/wrapper-mysql.php @@ -55,7 +55,7 @@ function is_myresource ($o, $onlyres = false) { if ( ! function_exists ('mysql_connect') ) { if ( ! extension_loaded ('mysqli') ) { - throw new Exception (E_ERROR, 'MySQL wrapper must need mysqli extension'); + throw new Exception ('MySQL wrapper needs the mysqli extension', E_ERROR); } if ( ! function_exists ('___ini_get') ) { @@ -1693,4 +1693,4 @@ function mysql_global_resource (&$c, $argc, $noerr = false) { function mysql_trigger_msg ($msg, $tr) { return sprintf ('%s: %s in %s on lien %d', $tr['function'], $msg, $tr['file'], $tr['line']); } -} \ No newline at end of file +}