From 7d3230f1d588fbfc1acd6c286aa645f5cd821029 Mon Sep 17 00:00:00 2001 From: pikami Date: Sun, 2 Apr 2017 12:03:40 +0000 Subject: [PATCH] Small change to make the PHP engine happy --- MyPastes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MyPastes.php b/MyPastes.php index 0385c53..46a6107 100644 --- a/MyPastes.php +++ b/MyPastes.php @@ -12,7 +12,8 @@ if(GetUsersIDBySession($_COOKIE["pp_sid"],$_COOKIE["pp_skey"]) == -1){ die(); } $stmt = $conn->prepare('SELECT * FROM pastes WHERE owner=:own'); -$stmt->bindParam(':own', GetUsersIDBySession($_COOKIE["pp_sid"],$_COOKIE["pp_skey"])); +$own = GetUsersIDBySession($_COOKIE["pp_sid"],$_COOKIE["pp_skey"]); +$stmt->bindParam(':own', $own); $stmt->execute(); if($stmt->rowCount()>0){ echo "";