aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/memberlist.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index ff34af94af..ea7fdb41a6 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -164,7 +164,8 @@ if(($selected_members = $db->sql_numrows($result)) > 0)
{
if(DEBUG)
{
- error_die(SQL_QUERY, "Error getting total users.", __LINE__, __FILE__);
+ $error = $db->sql_error();
+ error_die(SQL_QUERY, "Error getting total users. Reason: ".$error['message']."<br>Query: $sql", __LINE__, __FILE__);
}
else
{