Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
rafageist committed Jul 6, 2019
1 parent 55ed54d commit 64e688f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Jul 6, 2019
--------------------------
- bugfix in div::scanMatch

Jul 3, 2019
--------------------------
- Divengine namespace!
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Div PHP Template Engine 5.0.0
# Div PHP Template Engine 5.0.1

[![Build Status](http://divengine.com/status.png)](https://github.com/divengine/div)
[![License](http://divengine.com/license.png)](https://www.gnu.org/licenses/gpl-3.0.txt)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"code generator"
],
"homepage": "https://divengine.com",
"version": "5.0.0",
"version": "5.0.1",
"authors": [
{
"name": "Rafa Rodriguez",
Expand Down
6 changes: 3 additions & 3 deletions src/div.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* @package divengine/div
* @author Rafa Rodriguez @rafageist [https://rafageist.github.io]
* @version 5.0.0
* @version 5.0.1
*
* @link https://divengine.com/div
* @link https://github.com/divengine/div
Expand Down Expand Up @@ -735,7 +735,7 @@ class div
// ----- Internals -----
// current version of Div
private static $__version = '5.0.0';
private static $__version = '5.0.1';
// name of the super class
private static $__super_class = null;
Expand Down Expand Up @@ -5062,7 +5062,7 @@ final public function scanMatch($key, $value, $engine = null, &$items = null, $i
if (is_object($v)) {
$v = get_object_vars($v);
}
if (array_key_exists($var, $v)) {
if (isset($var[$v])) {
$cant = 0;
if (is_bool($v [$var]) || self::isString($v [$var])) {
$cant = 1;
Expand Down

0 comments on commit 64e688f

Please sign in to comment.