From: Tim Düsterhus Date: Sun, 10 Jun 2012 10:15:18 +0000 (+0300) Subject: Adding break;s in Regex::checkResult() X-Git-Tag: 2.0.0_Beta_1~1037^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=625b5351dcec4efe2295b3de48aad943617316cc;p=GitHub%2FWoltLab%2FWCF.git Adding break;s in Regex::checkResult() --- diff --git a/wcfsetup/install/files/lib/system/Regex.class.php b/wcfsetup/install/files/lib/system/Regex.class.php index 4eae656de4..753d25b519 100644 --- a/wcfsetup/install/files/lib/system/Regex.class.php +++ b/wcfsetup/install/files/lib/system/Regex.class.php @@ -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);