}
hidden = collhead = fullcollhead = total = 0;
- collheadnr = fullcollheadnr = -1;
+ collheadnr = fullcollheadnr = -1;
for(i=0; i<count; i++) {
/* Fill the array with entries. No need to free objrecs[i], since
* it is not duplicated in add_next_index_string().
}
/* }}} */
-/* {{{ proto string hw_getobject(int link, int objid [, string linkroot])
+/* {{{ proto string hw_getobject(int link, int objid [, string query])
Returns object record */
PHP_FUNCTION(hw_getobject) {
pval **argv[3];
zval **keydata;
lht = (*argv[1])->value.ht;
- if(0 == (count = zend_hash_num_elements(lht)))
+ if(0 == (count = zend_hash_num_elements(lht))) {
RETURN_FALSE;
+ }
ids = emalloc(count * sizeof(hw_objectID));
zend_hash_internal_pointer_reset(lht);