diff options
| author | Marcus Boerger <helly@php.net> | 2003-04-09 20:36:44 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2003-04-09 20:36:44 +0000 |
| commit | 00366c63fca4b335beb88164224f66a3365bd760 (patch) | |
| tree | 45a5e036cc6c742306be7614b2e4afcebd386d50 /ext/domxml/php_domxml.c | |
| parent | d8d9e167115792ab227a07c33550e4393d1befb2 (diff) | |
| download | php-git-00366c63fca4b335beb88164224f66a3365bd760.tar.gz | |
MFH
Diffstat (limited to 'ext/domxml/php_domxml.c')
| -rw-r--r-- | ext/domxml/php_domxml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index b51a24b652..0ae296429c 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -1798,7 +1798,7 @@ PHP_FUNCTION(domxml_attr_value) DOMXML_NO_ARGS(); /* RETURN_STRING((char *) xmlNodeGetContent((xmlNodePtr) attrp), 1); */ - if (content = xmlNodeGetContent((xmlNodePtr) attrp)) { + if ((content = xmlNodeGetContent((xmlNodePtr) attrp)) != NULL) { RETVAL_STRING(content,1); } else { RETURN_EMPTY_STRING(); @@ -1879,7 +1879,7 @@ PHP_FUNCTION(domxml_pi_data) DOMXML_NO_ARGS(); /* RETURN_STRING(xmlNodeGetContent(nodep), 1); */ - if (content = xmlNodeGetContent(nodep)) { + if ((content = xmlNodeGetContent(nodep)) != NULL) { RETVAL_STRING(content,1); } else { RETURN_EMPTY_STRING(); |
