From 3c44f48a8ab95ca0c4163ea064ec4525dfc33814 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 18 Feb 2011 12:09:23 -0200 Subject: Fixing delimiters on preg_match --- 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 46f1a8f..1a55e59 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(preg_match("/^(.*)( - )?(.*)/i", $buffer, $x)) { + if(preg_match("|^(.*)( - )?(.*)|i", $buffer, $x)) { $this->name = $x[1]; //mostly "Photo" $this->caption = chop($x[3]); } else { -- cgit v1.2.3