Hi Rambo,

>you could use the function 
> nemein_is_article_online() found in the Utils snippet under the 
> NemeinNavBar snippetdir (supposing you have fairly recent version).
> 

Just tried this function, but got something strange:
although 
article->approved is set to 2003-03-17 16:21:15 
and article->revised is set to 2003-03-17 17:40:33
in mysql the function returns 1 meaning article is online!!!

This is because of the check 
if (($article->revised) < ($article->approved)) {return 1;}

and if I check $article->approved it gives me 934896663
and               $article->revised gives:           933339335
which explains the mistake....

so how does midgard deal with date/time fields in mysql?

Any ideas how to fix this?

Alex

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte l�cheln! Fotogalerie online mit GMX ohne eigene Homepage!


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to