diff options
author | Wojciech Polak <polak@gnu.org> | 2014-02-09 17:57:17 +0100 |
---|---|---|
committer | Wojciech Polak <polak@gnu.org> | 2014-02-09 17:57:17 +0100 |
commit | 4bfca38dd3eaf92a868390ac51ff85b54a6c2c90 (patch) | |
tree | 1e4793791204f5b9cf610d6ae8f5be61ccd2e61d /frontend | |
parent | a5cc6e30ec0f31e64769c317b368f51d9d4ab808 (diff) | |
download | cheetah-4bfca38dd3eaf92a868390ac51ff85b54a6c2c90.tar.gz cheetah-4bfca38dd3eaf92a868390ac51ff85b54a6c2c90.tar.bz2 |
Fix notes list order.
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/xnotes.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/frontend/xnotes.php b/frontend/xnotes.php index 5f2865d..7432666 100644 --- a/frontend/xnotes.php +++ b/frontend/xnotes.php @@ -2,7 +2,7 @@ /* Cheetah News xnotes.php - Copyright (C) 2005, 2006, 2007 Wojciech Polak. + Copyright (C) 2005, 2006, 2007, 2014 Wojciech Polak. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -122,9 +122,10 @@ function getNoteList () $i = 1; $end = $db->num_rows (); if ($end > 0) { - echo "cheetahNoteList = {\n"; + echo "cheetahNoteList = [\n"; while ($db->next_record ()) { - echo " '".$db->f ('id')."' : ['".encodeJsEntities ($db->f ('color')). + echo "['".$db->f ('id'). + "', '".encodeJsEntities ($db->f ('color')). "', '".encodeJsEntities ($db->f ('title')). "', '".encodeJsEntities ($db->f ('date')). "', '".encodeJsEntities ($db->f ('public')). @@ -132,7 +133,7 @@ function getNoteList () if ($i++ < $end) echo ','; echo "\n"; } - echo "};\n"; + echo "];\n"; } else { echo "cheetahNoteList = null;\n"; |