diff options
author | Sergey Kartashoff <gluke@php.net> | 2001-05-03 08:59:49 +0000 |
---|---|---|
committer | Sergey Kartashoff <gluke@php.net> | 2001-05-03 08:59:49 +0000 |
commit | e176e5c101eca30bcf2ec2eeeacf7f8be0dd07ea (patch) | |
tree | c71ff3a89e3e50f0685335fe4b3c985131ff6063 /ext/mnogosearch/php_mnogo.c | |
parent | d805c9740f15c26d303f05b3c77683281d5d0f85 (diff) | |
download | php-git-e176e5c101eca30bcf2ec2eeeacf7f8be0dd07ea.tar.gz |
Some fixes in Udm_Cat_List and Udm_Cat_Path functions.
Diffstat (limited to 'ext/mnogosearch/php_mnogo.c')
-rw-r--r-- | ext/mnogosearch/php_mnogo.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/mnogosearch/php_mnogo.c b/ext/mnogosearch/php_mnogo.c index 61feb1c5ea..5114f86cf4 100644 --- a/ext/mnogosearch/php_mnogo.c +++ b/ext/mnogosearch/php_mnogo.c @@ -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++; } |