changeset 657:abfbacdff90a

Add error message for missing rotation list IDs.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 05 Nov 2014 15:15:50 +0200
parents c6df2ea4d5bf
children 987f8307ce4f
files admajax.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/admajax.php	Tue Nov 04 15:17:05 2014 +0200
+++ b/admajax.php	Wed Nov 05 15:15:50 2014 +0200
@@ -345,7 +345,7 @@
 {
   $sql = stPrepareSQL("SELECT * FROM rot_list_data WHERE id=%d", $list_id);
   if (($data = stFetchSQL($sql)) === false)
-    return "";
+    return "<p>No such rotation list ID #".intval($list_id)."</p>";
   
   $str =
     ($outer ? $indent."<div class=\"ctrlBox\" id=\"ctrlRotationListEdit\">\n" : "").