Martin Hierling wrote:

> I get "Resource has dependants" while trying this:
> 
> while ( $article->fetch() ) {
>       $timetolive = round ( ($expire -( time() -$article->created)) / (60*60*24),0 );
>       if ($timetolive <= 0 ) {
>               $article->delete();
>               echo mgd_errstr();
>               continue;
>               }
>       blah ...;
>       }
> 
> So, the article definitively has no followups or replys, only some
> Parameters. I'm authenticated and have permissions to that topic but i am
> not the author. 

Parameters are dependants. They are not deleted automatically with the
article object. I hadn't thought about this issue before.

Emile



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

Reply via email to