diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-11-05 22:58:01 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-11-05 22:58:01 +0100 |
commit | 2d7eb3b97eb802f700965cc88a9b049687e8abf0 (patch) | |
tree | a746d79819c9a98f3c3161fd3be196663dbe5165 /ratatoeskr/sys/models.php | |
parent | 005ba07fb9b46191383adc583e80b0bddbbe05c8 (diff) | |
download | ratatoeskr-cms-2d7eb3b97eb802f700965cc88a9b049687e8abf0.tar.gz ratatoeskr-cms-2d7eb3b97eb802f700965cc88a9b049687e8abf0.tar.bz2 ratatoeskr-cms-2d7eb3b97eb802f700965cc88a9b049687e8abf0.zip |
2 Small bugfixes.
1. Corrected a SQL-Query in models.php
2. <ste:articles_get> will now set maxpages properly, if there are no
articles found.
Diffstat (limited to 'ratatoeskr/sys/models.php')
-rw-r--r-- | ratatoeskr/sys/models.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ratatoeskr/sys/models.php b/ratatoeskr/sys/models.php index c0320fa..627fa89 100644 --- a/ratatoeskr/sys/models.php +++ b/ratatoeskr/sys/models.php @@ -1024,7 +1024,7 @@ class Style */ public function save() { - $result = qdb("SELECT COUNT(*) AS `n` FROM `PREFIX_styles` WHERE `name` = '%' AND `id` != %d", $this->name, $this->id); + $result = qdb("SELECT COUNT(*) AS `n` FROM `PREFIX_styles` WHERE `name` = '%s' AND `id` != %d", $this->name, $this->id); $sqlrow = mysql_fetch_assoc($result); if($sqlrow["n"] > 0) throw new AlreadyExistsError(); |