diff --git a/Flexy/Compiler/Standard/Tag.php b/Flexy/Compiler/Standard/Tag.php index ba00a1c..a765213 100755 --- a/Flexy/Compiler/Standard/Tag.php +++ b/Flexy/Compiler/Standard/Tag.php @@ -631,6 +631,10 @@ function reWriteURL($which) foreach ($bits as $bit) { $parts = explode (':', $bit); + if (!isset($parts[1])) { + PEAR::raiseError('HTML_Template_Flexy: url_rewrite syntax incorrect'. + print_r($bits,true),null,PEAR_ERROR_DIE); + } $new = preg_replace('#^'.$parts[0].'#',$parts[1], $new); }