diff --git a/src/index.php b/src/index.php index 06ff443..02eef82 100644 --- a/src/index.php +++ b/src/index.php @@ -138,7 +138,7 @@ $stmt->bindParam(1, $userid, PDO::PARAM_INT); $stmt->execute(); $shoppees = array(); while ($row = $stmt->fetch()) { - $row['list_stamp'] = ($row['list_stamp == 0'] ? '-' : strftime($opt["date_format"], strtotime($row['list_stamp']))); + $row['list_stamp'] = ($row['list_stamp'] == 0 ? '-' : strftime($opt["date_format"], strtotime($row['list_stamp']))); $shoppees[] = $row; }