diff options
Diffstat (limited to 'requests.php')
-rwxr-xr-x | requests.php | 6 |
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=""){ |