little bug regarding object-handling
| From: | M Mohr | Date: | Fri, 07 Feb 2003 10:35:50 +0000 |
| Subject: | little bug regarding object-handling | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-667@lists.php.net to get a copy of this message | ||
Hello,
Smarty raises
Fatal error: Smarty error: registered 'foo' is not an object in
.../Smarty.class.php on line 2581
errornously when the registered object is an object but empty (has no
properties).
a fixing diff against Smarty_Compiler.class.php in Smarty-2.4.1 would
be:
693c693
< if(!$this->_reg_objects[$object][0]) {
---
> if(!is_object($this->_reg_objects[$object][0])) {
regards
messju