Commit 3bf33f1a37f3c7c392eaac1cffd83fa920de82da

Authored by michael
1 parent ca1cbe73

corrected update method


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2667 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/dashboard/DashboardNews.inc
@@ -337,7 +337,7 @@ class DashboardNews { @@ -337,7 +337,7 @@ class DashboardNews {
337 "synopsis = '$this->sSynopsis', " . 337 "synopsis = '$this->sSynopsis', " .
338 "body = '$this->sBody', " . 338 "body = '$this->sBody', " .
339 "rank = $this->iRank, " . 339 "rank = $this->iRank, " .
340 - "image = '$this->sImage', " . 340 + "image = '" . addslashes($this->sImage) . "', " .
341 "image_size = $this->iImageSize " . 341 "image_size = $this->iImageSize " .
342 ($this->iImageMimeTypeID ? ", image_mime_type_id = $this->iImageMimeTypeID " : " ") . 342 ($this->iImageMimeTypeID ? ", image_mime_type_id = $this->iImageMimeTypeID " : " ") .
343 "WHERE id = $this->iId"; 343 "WHERE id = $this->iId";