No title Revision 333261356135 (Wed Jan 19 2011 at 14:36) - Diff Link to this snippet: https://friendpaste.com/65LYrMtQquv6hyCl9vs2wu Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 123456789101112131415 if ($article->metadata->published->getTimestamp() != $item->published->date->getTimestamp()) { $article->metadata->published = $item->published->date; $update = true; } if ($update) { if (!$article->guid) { $article->create(); continue; } $article->update(); }