From 50d263339efae667071829bb04b6a0f8201ca42f Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sun, 4 Oct 2015 00:59:20 +0200 Subject: [PATCH] fixed looperror on no db --- db/qq/QI.php | 2 +- db/qq/QP.php | 2 +- db/qq/QQ.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db/qq/QI.php b/db/qq/QI.php index ce2412b..e560d90 100644 --- a/db/qq/QI.php +++ b/db/qq/QI.php @@ -14,7 +14,7 @@ class QI { } else if ($dbinfo instanceof \SYSTEM\DB\DBInfoSQLite){ $files = static::files_sqlite(); } else { - throw new \SYSTEM\LOG\ERROR(static::get_class().' Could not understand Database Settings. Check ur Database Settings');} + throw new \Exception(static::get_class().' Could not understand Database Settings. Check ur Database Settings');} $command = 'mysql'. ' --host=' . $dbinfo->m_host. diff --git a/db/qq/QP.php b/db/qq/QP.php index 0ddb97f..7197611 100644 --- a/db/qq/QP.php +++ b/db/qq/QP.php @@ -17,7 +17,7 @@ class QP { return $con->prepare(static::get_class(),static::sqlite(),$params); } } catch (\Exception $e){ - throw new \SYSTEM\LOG\ERROR(static::get_class().' failed causing: '.$e->getMessage(),$e->getCode(),$e);} + throw new \Exception(static::get_class().' failed causing: '.$e->getMessage(),$e->getCode(),$e);} throw new \Exception('Could not understand Database Settings. Check ur Database Settings'); } diff --git a/db/qq/QQ.php b/db/qq/QQ.php index d8b3de7..4e941f0 100644 --- a/db/qq/QQ.php +++ b/db/qq/QQ.php @@ -18,7 +18,7 @@ class QQ { return $con->query(static::sqlite()); } } catch (\Exception $e){ - throw new \SYSTEM\LOG\ERROR(static::get_class().' failed causing: '.$e->getMessage(),$e->getCode(),$e);} + throw new \Exception(static::get_class().' failed causing: '.$e->getMessage(),$e->getCode(),$e);} throw new \Exception('Could not understand Database Settings. Check ur Database Settings'); }