Browse Source

Adjust loaded() to has()

euromark 11 years ago
parent
commit
76b6b97eb4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Model/Behavior/SluggedBehavior.php

+ 1 - 1
src/Model/Behavior/SluggedBehavior.php

@@ -113,7 +113,7 @@ class SluggedBehavior extends Behavior {
 
 
 		$label = $this->_config['label'] = (array)$this->_config['label'];
 		$label = $this->_config['label'] = (array)$this->_config['label'];
 
 
-		if ($this->_table->behaviors()->loaded('Translate')) {
+		if ($this->_table->behaviors()->has('Translate')) {
 			$this->_config['length'] = false;
 			$this->_config['length'] = false;
 		}
 		}
 		if ($this->_config['length']) {
 		if ($this->_config['length']) {