This commit is contained in:
Roly Rudy Gutierrez Pinto
2016-02-19 15:00:34 -04:00
parent 29ab9cadbf
commit ddad62cf4c
2 changed files with 65 additions and 1 deletions

View File

@@ -139,7 +139,7 @@ class pmDynaform
if (!$sw1 && !$sw2) {
//read event
$fn = $this->onPropertyRead;
if (function_exists($fn)) {
if (is_callable($fn) || function_exists($fn)) {
$fn($json, $key, $value);
}
//set properties from trigger