Update functions.php
authorPatrick McGuire <insidenothing@gmail.com>
Mon, 1 Jun 2020 14:33:20 +0000 (10:33 -0400)
committerGitHub <noreply@github.com>
Mon, 1 Jun 2020 14:33:20 +0000 (10:33 -0400)
admin/functions.php

index 1158875..3b784f0 100644 (file)
@@ -2,7 +2,7 @@
 
 function id2petition($id){
   global $petition;
-  $q = "select petition_name from petition where petition_id = '$id'";
+  $q = "select petition_name from petitions where petition_id = '$id'";
   $r = $petition->query($q);
   $d = mysqli_fetch_array($r,MYSQLI_ASSOC);
   return $d['petition_name'];