]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 25 Jun 2012 13:07:53 +0000 (13:07 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 25 Jun 2012 13:07:53 +0000 (13:07 +0000)
inc/ws/Controlleur/class.ws.maintenance.php

index c7c080130ed91a9610d8c9950c5293449d4bda08..f8b40952ced28b754719bd6cf506ee0913360592 100644 (file)
@@ -630,7 +630,7 @@ class wsMaintenance {
                global $core;\r
                $book_id = $args[0];\r
 \r
-               $r = $core->con->select('SELECT * FROM book_pages_versions WHERE book_id=\'' . $core->con->escape($book_id) . '\' ORDER BY `update` DESC LIMIT 1');\r
+               $r = $core->con->select('SELECT * FROM book_pages_versions WHERE book_id=\'' . $core->con->escape($book_id) . '\' AND composition!=\'a:0:{}\' ORDER BY `update` DESC LIMIT 1');\r
                if (!$r->count()) {\r
                        return;\r
                }\r