Issue with function. s9y_fetchCategories+pgsql (svn-snapsh.)

Found a bug? Tell us!!
Post Reply
Boris

Issue with function. s9y_fetchCategories+pgsql (svn-snapsh.)

Post by Boris »

In the current svn-snapshot (s9y_200512181438.tar.gz) I had an issue with an fresh install on Postgresql.
The function serendipity_fetchCategories in functions_entries.inc.php only looks if the result of the query is an array or not. But Postgres returns no Array if the result is empty. Instead true is returned and a false on failure.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Issue with function. s9y_fetchCategories+pgsql (svn-snap

Post by garvinhicking »

What issue did you face, what happened and which behaviour did you expect?

Serendipity uses a DB layer, and that one returns arrays or strings, so it is not related to postgresql itself.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Boris

Re: Issue with function. s9y_fetchCategories+pgsql (svn-snap

Post by Boris »

garvinhicking wrote:What issue did you face, what happened and which behaviour did you expect?
:oops: Forgotten

If you have no categorie at all, i shows an "Query failed: 0".(I think, can't have a look at it now) in the plugin-field and somewhere in the admin-pages.
I'll look at it tomorrow again.
Boris

Re: Issue with function. s9y_fetchCategories+pgsql (svn-snap

Post by Boris »

Boris wrote:If you have no categorie at all, i shows an "Query failed: 0".(I think, can't have a look at it now) in the plugin-field and somewhere in the admin-pages.
I'll look at it tomorrow again.
It's "Query Failed: 1" and accours in the Categories-Section of the admin-panel and the sidbar-categories-list if you have no categories.
Of course using the Categories-Plugin if you have no Categories is stupid, so the message in the admin-panel is the really "ugly" relevant.
Post Reply