mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 10:04:07 +02:00
Replace ereg*() by preg_*()
ereg() triggers deprecated error which is sent to custom error handlers. It is also faster. There are no more deprecated functions except mysql_connect().
This commit is contained in:
@@ -49,5 +49,5 @@ function send_mail($email, $subject, $message, $from = "", $files = array()) {
|
||||
* @return bool
|
||||
*/
|
||||
function like_bool($field) {
|
||||
return ereg("bool|(tinyint|bit)\\(1\\)", $field["full_type"]);
|
||||
return preg_match("~bool|(tinyint|bit)\\(1\\)~", $field["full_type"]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user