From d8468c1a38095bc24971ea848c0655b778af1390 Mon Sep 17 00:00:00 2001 From: Graham Weldon Date: Fri, 16 Sep 2011 00:34:39 +1000 Subject: [PATCH] Fixed incorrect ife() conversion. Thanks SkieDr. --- lib/Cake/Console/Command/UpgradeShell.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Console/Command/UpgradeShell.php b/lib/Cake/Console/Command/UpgradeShell.php index a6c5287cf96..9cf6e1aeba7 100644 --- a/lib/Cake/Console/Command/UpgradeShell.php +++ b/lib/Cake/Console/Command/UpgradeShell.php @@ -296,9 +296,9 @@ public function basics() { 'echo \1' ), array( - 'ife(*, *, *) -> empty(*) ? * : *', + 'ife(*, *, *) -> !empty(*) ? * : *', '/ife\((.*), (.*), (.*)\)/', - 'empty(\1) ? \2 : \3' + '!empty(\1) ? \2 : \3' ), array( 'r(*, *, *) -> str_replace(*, *, *)',