Adding break;s in Regex::checkResult()
authorTim Düsterhus <timwolla@googlemail.com>
Sun, 10 Jun 2012 10:15:18 +0000 (13:15 +0300)
committerTim Düsterhus <timwolla@googlemail.com>
Sun, 10 Jun 2012 10:15:18 +0000 (13:15 +0300)
wcfsetup/install/files/lib/system/Regex.class.php

index 4eae656de449ef986ba0415f86449f01be6475ce..753d25b519374fadfc4c95d321c966bcf22101e1 100644 (file)
@@ -197,8 +197,10 @@ final class Regex {
                                break;
                                case PREG_NO_ERROR:
                                        return $result;
+                               break;
                                default:
                                        $error = 'Unknown error';
+                               break;
                        }
                        
                        throw new SystemException('Could not execute '.($method ? $method.' on ' : '').$this->regex.': '.$error);