madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20225: LJSUP-10030: If no entry exists, correct...

Committer: sbelyaev
LJSUP-10030: If no entry exists, correct error will be displayed;
U   trunk/htdocs/editjournal.bml
Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2011-10-05 03:55:14 UTC (rev 20224)
+++ trunk/htdocs/editjournal.bml	2011-10-05 04:20:52 UTC (rev 20225)
@@ -349,6 +349,10 @@
             } else {
                 $entry_obj = LJ::DelayedEntry->get_entry_by_id($u_for_entry, $delayedid);
 
+                # does the requested entry exist?
+                return "<?h1 $ML{'Error'} h1?><?p $ML{'/editjournal_do.bml.error.nofind'} p?>"
+                    unless $entry_obj;
+
                 $res{'success'} = 'OK';
                 $res{'events_count'}  = 1;
                 $res{'events_1_anum'} = 0;

Tags: bml, livejournal, madeon
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments