Commit 2d35d74f0df3f77337eab9533c03ddaa9f3f8bda
1 parent
269f940a
added check for empty rows in system_settings
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2283 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
lib/System.inc
| @@ -31,7 +31,7 @@ class System { | @@ -31,7 +31,7 @@ class System { | ||
| 31 | function initialised() { | 31 | function initialised() { |
| 32 | global $default; | 32 | global $default; |
| 33 | 33 | ||
| 34 | - if ($this->db->query("SELECT count(*) AS count FROM system_settings WHERE name<>'lastIndexUpdate' AND name<>'filesystemRoot'")) { | 34 | + if ($this->db->query("SELECT count(*) AS count FROM system_settings WHERE name<>'lastIndexUpdate' AND name<>'filesystemRoot' AND value<>''")) { |
| 35 | $this->db->next_record(); | 35 | $this->db->next_record(); |
| 36 | return ($this->db->f("count") > 0) ? true : false; | 36 | return ($this->db->f("count") > 0) ? true : false; |
| 37 | } | 37 | } |