Hello,

I use mgd-1.4.1-dev/php4.0.4pl1/apache1.3.19 and have a problem with
$article->create() since upgrading from 1.4/php3:

the echo of this snippet (a part of Philipps midhoo) gives ID = 0, but
should (and did with 1.4) print the ID of the inserted article. As Philipp
uses a 1.4.1/php4 version too an could not reproduce the problem I'm quite
confused... btw: article is created as usual and if I reread the article
with mgd_get_article_by_name() I get the correct ID.

          $mgdArticle = mgd_get_article();
          $mgdArticle->topic = $topic;
          $mgdArticle->title = $title;
          $mgdArticle->url = $url;
          $mgdArticle->name = $keywords;
          $mgdArticle->abstract = $abstract;
          $mgdArticle->extra1 = $email;
          $mgdArticle->author = $author->id;
          if (! $mgdArticle->create()) {
             $this->error = MIDHOO_ERROR_MIDGARD;
             $this->errstr = mgd_errstr();
             return(0);
          }

           echo "ID: $mgdArticle->id";

Any ideas?

Ingo



PGP fingerprint: 859C E367 FF87 CFF0 C637  467E D659 5B15 92E2 C583


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

Reply via email to