Mercurial > hg > fapweb
diff admajax.php @ 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 | baf2c9608e0a |
children | 61a1575306d3 |
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" : "").