From 9334f7e48133c3a2309ed8dc39182cbc486570b6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 18 Feb 2011 11:44:58 -0200 Subject: Avoiding deprecation notices (3) --- www/inc/photo.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www/inc/photo.class.inc.php') diff --git a/www/inc/photo.class.inc.php b/www/inc/photo.class.inc.php index 1b677c1..46f1a8f 100644 --- a/www/inc/photo.class.inc.php +++ b/www/inc/photo.class.inc.php @@ -102,7 +102,7 @@ class C_photo { return; } //parse buffer - if(eregi("^(.*)( - )?(.*)", $buffer, $x)) { + if(preg_match("/^(.*)( - )?(.*)/i", $buffer, $x)) { $this->name = $x[1]; //mostly "Photo" $this->caption = chop($x[3]); } else { -- cgit v1.2.3