ajax.php
changeset 419 b8b4e38825db
parent 417 b76ebe229548
child 468 194a19711346
--- a/ajax.php	Tue Feb 12 07:44:16 2008 -0500
+++ b/ajax.php	Tue Feb 12 22:17:58 2008 -0500
@@ -115,6 +115,7 @@
         if ( $db->numrows() > 0 )
         {
           $have_draft = true;
+          $draft_row = $db->fetchrow($q);
         }
       }
       else if ( $src !== false )
@@ -145,7 +146,7 @@
       
       if ( $have_draft )
       {
-        $row = $db->fetchrow($q);
+        $row =& $draft_row;
         $return['have_draft'] = true;
         $return['draft_author'] = $row['author'];
         $return['draft_time'] = enano_date('d M Y h:i a', intval($row['time_id']));