# You should have received a copy of the GNU Affero General Public License
# along with Confetti. If not, see <http://www.gnu.org/licenses/>.
-[ -z "$_GET[\"order\"]" ] && _GET["order"]=DOW
+[ -z "${_GET[order]}" ] && _GET[order]=DOW
listcards() {
ls -1 ${_DATA}/vcard/*vcf 2>/dev/null |while read file; do
listcourses() {
- case "$_GET[\"filtertype\"]" in
+ case "${_GET[filtertype]}" in
*) ls -1 ${_DATA}/ical/*ics 2>/dev/null
;;
- esac |case "$_GET[\"order\"]" in
+ esac |case "${_GET[order]}" in
DOW)
while read file; do
icstime="$(sed -rn 's:^DTSTART\:(TZID=.*\:)?([0-9]{4})([0-9]{2})([0-9]{2})T([0-9]{2})([0-9]{2})([0-9]{2})Z?\r$:\2-\3-\4 \5\:\6\:\7:p' "$file")"