diff --git a/application/config/database.php b/application/config/database.php index 79b48cb44..77cdc502b 100755 --- a/application/config/database.php +++ b/application/config/database.php @@ -1,5 +1,6 @@ load->helper('file'); - $sqlfile = read_file('./system/fhcomplete3.0.sql'); - - if (!$this->db->simple_query($sqlfile)) + if (!$this->db->table_exists('tbl_person')) { - echo "Error creating Basis DB-Schema!"; + $this->load->helper('file'); + $sqlfile = read_file('./system/fhcomplete3.0.sql'); + + if (!$this->db->simple_query($sqlfile)) + { + echo "Error creating Basis DB-Schema!"; + } } }