]> granicus.if.org Git - php/commitdiff
Some fixes in Udm_Cat_List and Udm_Cat_Path functions.
authorSergey Kartashoff <gluke@php.net>
Thu, 3 May 2001 08:59:49 +0000 (08:59 +0000)
committerSergey Kartashoff <gluke@php.net>
Thu, 3 May 2001 08:59:49 +0000 (08:59 +0000)
ext/mnogosearch/php_mnogo.c

index 61feb1c5eaa4fea0c7675fd350d624831e2586b6..5114f86cf48002bb82ede0f2a40f7ee81ee44e07 100644 (file)
@@ -1155,7 +1155,8 @@ DLEXPORT PHP_FUNCTION(udm_cat_list)
                
                while(c->rec_id){                       
                        snprintf(buf, UDMSTRSIZ, "%s%s",c->link[0]?"@ ":"", c->name);                            
-                       add_assoc_string(return_value, c->link[0]?c->link:c->path, buf, 1);
+                       add_next_index_string(return_value, c->link[0]?c->link:c->path, 1);
+                       add_next_index_string(return_value, buf, 1);
                        c++;
                }
                
@@ -1204,7 +1205,8 @@ DLEXPORT PHP_FUNCTION(udm_cat_path)
                
                while(c->rec_id){                       
                        snprintf(buf, UDMSTRSIZ, "%s%s",c->link[0]?"@ ":"", c->name);                            
-                       add_assoc_string(return_value, c->link[0]?c->link:c->path, buf, 1);
+                       add_next_index_string(return_value, c->link[0]?c->link:c->path, 1);
+                       add_next_index_string(return_value, buf, 1);
                        c++;
                }