From 5261cec7ebe293be7b0db1251836259d9831a48d Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 19 Oct 2012 03:48:20 -0400
Subject: [PATCH] Improved error message when setting required options fails (#1488682)

---
 program/include/iniset.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/program/include/iniset.php b/program/include/iniset.php
index a2f43b3..82278c9 100644
--- a/program/include/iniset.php
+++ b/program/include/iniset.php
@@ -34,7 +34,9 @@
 );
 foreach ($config as $optname => $optval) {
     if ($optval != ini_get($optname) && @ini_set($optname, $optval) === false) {
-        die("ERROR: Wrong '$optname' option value. Read REQUIREMENTS section in INSTALL file or use Roundcube Installer, please!");
+        die("ERROR: Wrong '$optname' option value and it wasn't possible to set it to required value ($optval).\n"
+            ."Check your PHP configuration (including php_admin_flag).\n"
+            ."Read REQUIREMENTS section in INSTALL file or use Roundcube Installer!");
     }
 }
 

--
Gitblit v1.9.1