-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rafageist
committed
Jul 23, 2019
1 parent
db68740
commit d04c071
Showing
4 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
* | ||
* @package divengine/ways | ||
* @author Rafa Rodriguez [@rafageist] <[email protected]> | ||
* @version 2.3.1 | ||
* @version 2.3.2 | ||
* | ||
* @link https://divengine.com | ||
* @link https://divengine.com/ways | ||
|
@@ -57,7 +57,7 @@ class ways | |
|
||
const PROPERTY_RULES = 'rules'; | ||
|
||
private static $__version = '2.3.1'; | ||
private static $__version = '2.3.2'; | ||
|
||
private static $__way_var; | ||
|
||
|
@@ -1433,6 +1433,10 @@ public static function register($path, $properties = []) | |
foreach ($rules as $rule) { | ||
if (!empty(self::$__controllers[$prop[self::PROPERTY_ID]])) { | ||
|
||
if (!isset(self::$__controllers[$prop[self::PROPERTY_ID]]['prop'][self::PROPERTY_RULES])){ | ||
self::$__controllers[$prop[self::PROPERTY_ID]]['prop'][self::PROPERTY_RULES] = []; | ||
} | ||
|
||
if (is_string(self::$__controllers[$prop[self::PROPERTY_ID]]['prop'][self::PROPERTY_RULES])) { | ||
self::$__controllers[$prop[self::PROPERTY_ID]]['prop'][self::PROPERTY_RULES] = [self::$__controllers[$prop[self::PROPERTY_ID]]['prop'][self::PROPERTY_RULES]]; | ||
} | ||
|