From 44119d6412a5629bf4c8adb42d3be8632efd2c8d Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 11 Jun 2014 03:18:18 +0000 Subject: [PATCH] fix error --- application/models/Archive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Archive.php b/application/models/Archive.php index 45cafed7..5ae47532 100644 --- a/application/models/Archive.php +++ b/application/models/Archive.php @@ -440,7 +440,7 @@ class Archive ts_published=".$data['ts_published'].", is_pub=".$data['is_pub'].", body=".$data['body']." - WHERE id=$aid and sub='$config->sub->news'"; + WHERE id=$aid and sub='".$config->sub->news."'"; try{ if($this->db->exec($sql)) {