diff --git a/admin/cms.php b/admin/cms.php
index 06103f4..badbac0 100644
--- a/admin/cms.php
+++ b/admin/cms.php
@@ -177,14 +177,15 @@
echo "".i18n("or click here to create a new file")."
\n";
echo "
".i18n("Filename")." | ".i18n("Last Update")." | |
---|---|---|
filename)."\">/web/$r->filename | "; - $q2=mysql_query("SELECT dt FROM cms WHERE filename='".mysql_escape_string($r->filename)."' ORDER BY dt DESC LIMIT 1"); - $r2=mysql_fetch_object($q2); + $q2 = $pdo->prepare("SELECT dt FROM cms WHERE filename='".mysql_escape_string($r->filename)."' ORDER BY dt DESC LIMIT 1"); + + $r2=$q2->fetch(PDO::FETCH_OBJ); if($r2->dt=="0000-00-00 00:00:00") $dt="Never"; else $dt=$r2->dt; echo "$dt | "; diff --git a/admin/committees.php b/admin/committees.php index 7e1d5db..37d60fc 100644 --- a/admin/committees.php +++ b/admin/committees.php @@ -247,10 +247,13 @@ if($_GET['unlinkmember'] && $_GET['unlinkcommittee']) { echo ""; echo ""; - $q=mysql_query("SELECT uid,MAX(year),firstname,lastname,email,deleted FROM users WHERE types LIKE '%committee%' GROUP BY uid ORDER BY firstname"); + $q = $pdo->prepare("SELECT uid,MAX(year),firstname,lastname,email,deleted FROM users WHERE types LIKE '%committee%' GROUP BY uid ORDER BY firstname"); + $q->execute(); + + echo " |