oops, last change broke something

This commit is contained in:
John Bintz 2009-08-27 22:37:27 -04:00
parent c50a9ee3b1
commit 0de7f02ed1
1 changed files with 1 additions and 3 deletions

View File

@ -167,9 +167,7 @@ function cpm_breakdown_comic_filename($filename, $allow_override = false) {
"m" => '[0-9]{2,2}',
"d" => '[0-9]{2,2}'));
$pattern = preg_quote($pattern, "#");
if (preg_match("#^(${pattern})(.*)\.[^\.]+$#", $filename, $matches) > 0) {
if (@preg_match("#^(${pattern})(.*)\.[^\.]+$#", $filename, $matches) > 0) {
list($all, $date, $title) = $matches;
if (strtotime($date) === false) { return false; }