From: Penny Leach Date: Mon, 26 Jun 2006 09:39:27 +0000 (+1200) Subject: more breakfast attendees, order by name X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fa71766ec615d7207434c5e981b43ef96e572db0;p=s9y.git more breakfast attendees, order by name --- diff --git a/plugins/serendipity_plugin_breakfast/admin.inc.php b/plugins/serendipity_plugin_breakfast/admin.inc.php index dc9e88e..fbab061 100644 --- a/plugins/serendipity_plugin_breakfast/admin.inc.php +++ b/plugins/serendipity_plugin_breakfast/admin.inc.php @@ -4,6 +4,7 @@ if (IN_serendipity !== true) { } require_once(dirname(__FILE__).'/lib.php'); +$maxattendees = 15; switch ($serendipity['GET']['adminAction']) { @@ -22,7 +23,7 @@ switch ($serendipity['GET']['adminAction']) { '; - for ($i = 0; $i < 10; $i++) { + for ($i = 0; $i < $maxattendees; $i++) { echo '
@@ -68,7 +69,7 @@ echo ' VALUES ('.$date.','.$cafeid.((!empty($_GET['comment'])) ? ',\''.$_GET['comment'].'\'' : '').')'); $eventid = serendipity_db_insert_id(); - for ($i = 0; $i < 10; $i++) { + for ($i = 0; $i < $maxattendees; $i++) { // person, meal, then scores. if (empty($_GET['person'.$i]) && empty($_GET['person_free'.$i])) { continue; diff --git a/plugins/serendipity_plugin_breakfast/lib.php b/plugins/serendipity_plugin_breakfast/lib.php index e2cc0c4..13349a8 100644 --- a/plugins/serendipity_plugin_breakfast/lib.php +++ b/plugins/serendipity_plugin_breakfast/lib.php @@ -231,7 +231,7 @@ function breakfast_generate_sql($latest=true,$date=0,$cafe=0,$person=0,$meal=0) $w = true; } } - return $sql .' ORDER BY e.date DESC'; + return $sql .' ORDER BY e.date DESC, p.name'; } ?> \ No newline at end of file