summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2018-05-16 14:35:43 +0000
committercos <cos>2018-05-16 14:35:43 +0000
commit1f52bb6406957124ec1bfd4da7af7216d78d99f5 (patch)
treec326ab1a4e02f13ee16df1d9cea57a91d00c2f32
parentca60904129788608a0f9f2dfa7b2605d87556df4 (diff)
downloadRunnerUpLive-fix/fixes.zip
Make tracking actually work.fix/fixes
The unreachable break statement yielded in a "PHP Fatal error" and the other few lines are required for working towards a freshly created database.
-rwxr-xr-xrequests.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/requests.php b/requests.php
index 03c2191..97042e4 100755
--- a/requests.php
+++ b/requests.php
@@ -112,8 +112,11 @@ else {
$query->bind_param('i', $userid );
$query->execute();
$query->store_result();
- $query->bind_result($tripid,$tripname);
+ $query->bind_result($tripid,$db_tripname);
$query->fetch();
+ if ( $db_tripname ) {
+ $tripname = $db_tripname;
+ }
$num = $query->num_rows;
$query->free_result();
$query->close();
@@ -167,7 +170,6 @@ else {
quit(7,$mysqli->error);
}
quit(0);
- break;
}
function quit($errno,$param=""){