diff options
Diffstat (limited to 'www/inc/photo.class.inc.php')
-rw-r--r-- | www/inc/photo.class.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
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("^<span>(.*)</span>( - )?(.*)", $buffer, $x)) { + if(preg_match("/^<span>(.*)</span>( - )?(.*)/i", $buffer, $x)) { $this->name = $x[1]; //mostly "Photo" $this->caption = chop($x[3]); } else { |