- set correct version for svn1

- correct default-php.ini for open_basedir
- fix upgrading from SysCP (getPhpConfigs() fails cause the table is being added after it's being used in the update-process)
This commit is contained in:
Michael Kaufmann (d00p)
2011-01-26 15:01:19 +00:00
parent 1396aca657
commit a7ae6e54de
6 changed files with 38 additions and 17 deletions

View File

@@ -181,23 +181,37 @@ class db
* @return string RessourceId
*/
function query($query_str, $unbuffered = false)
function query($query_str, $unbuffered = false, $suppress_error = false)
{
global $numbqueries;
if(!$unbuffered)
{
$this->query_id = mysql_query($query_str, $this->link_id);
if($suppress_error)
{
$this->query_id = @mysql_query($query_str, $this->link_id);
} else {
$this->query_id = mysql_query($query_str, $this->link_id);
}
}
else
{
$this->query_id = mysql_unbuffered_query($query_str, $this->link_id);
if($suppress_error)
{
$this->query_id = @mysql_unbuffered_query($query_str, $this->link_id);
} else {
$this->query_id = mysql_unbuffered_query($query_str, $this->link_id);
}
}
if(!$this->query_id)
if(!$this->query_id && !$suppress_error)
{
$this->showerror('Invalid SQL: ' . $query_str);
}
elseif(!$this->query_id && $suppress_error)
{
return false;
}
$numbqueries++;