--- mythweb/includes/mythbackend.php	2005-06-16 16:13:54.000000000 +0100
+++ mythweb/includes/mythbackend.php	2005-07-04 00:40:10.000000000 +0100
@@ -267,11 +267,13 @@
                      $show->starttime,    // dummy org airdate
                      '',                  // trailing separator
                     );
-        $lastmodified = strtotime(backend_command($cmd));
+        if (is_file($pngpath)) {
+            $lastmodified = filemtime($pngpath);
     // Delete outdated images, but not until the show has finished recording
-        if (is_file($pngpath) && $lastmodified < $show->lastmodified && $show->lastmodified >= $show->endtime) {
-            unlink($pngpath);
-            clearstatcache();
+            if ($lastmodified < $show->lastmodified && $show->lastmodified >= $show->endtime) {
+                 unlink($pngpath);
+                 clearstatcache();
+            }
         }
     // Need a new pixmap?
         if (!is_file($pngpath)) {
