Browse Source

Update ControllerTask.php

Updated if statement for clarity and also fixed spelling mistake.
pummra 12 years ago
parent
commit
0214ac403e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/Cake/Console/Command/Task/ControllerTask.php

+ 2 - 2
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));			
 		}
 	}