From 0214ac403e993cb02878410a1780b16bdd04b927 Mon Sep 17 00:00:00 2001 From: pummra Date: Wed, 8 Jan 2014 10:10:40 +0000 Subject: [PATCH] Update ControllerTask.php Updated if statement for clarity and also fixed spelling mistake. --- lib/Cake/Console/Command/Task/ControllerTask.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Console/Command/Task/ControllerTask.php b/lib/Cake/Console/Command/Task/ControllerTask.php index 1a8f89558..db7bb38e8 100644 --- a/lib/Cake/Console/Command/Task/ControllerTask.php +++ b/lib/Cake/Console/Command/Task/ControllerTask.php @@ -128,8 +128,8 @@ class ControllerTask extends BakeTask { } } - if ($controllersCreated === 0) { - $this->out(__d('cake_console', 'No Controllers were baked, Models need to exisit before Controllers can be baked.', $admin)); + if (!$controllersCreated) { + $this->out(__d('cake_console', 'No Controllers were baked, Models need to exist before Controllers can be baked.', $admin)); } }