Commit fad5b436 authored by Dmitriy's avatar Dmitriy Committed by Vitaly Lipatov

Fix site editing

parent aefe3d4f
...@@ -129,7 +129,7 @@ class Site extends CI_Model { ...@@ -129,7 +129,7 @@ class Site extends CI_Model {
'path' => $site['path'], 'path' => $site['path'],
'date' => date("Y-m-d H:i:s", time()) 'date' => date("Y-m-d H:i:s", time())
); );
$this->db->insert('sites', $data); $this->db->insert('sites', $data);
} }
...@@ -172,6 +172,7 @@ class Site extends CI_Model { ...@@ -172,6 +172,7 @@ class Site extends CI_Model {
$this->db->from("sites"); $this->db->from("sites");
$count = $this->db->count_all_results(); $count = $this->db->count_all_results();
if ($count == 0) { if ($count == 0) {
return true; return true;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment