lib/videojuicer/resource/collection.rb in vj-sdk-0.5.3 vs lib/videojuicer/resource/collection.rb in vj-sdk-0.5.4

- old
+ new

@@ -20,10 +20,10 @@ self.offset = offset self.limit = limit end def page_count - return 1 if limit.nil? + return 1 if limit.nil? or total.nil? or total < 1 (total.to_f/limit.to_f).ceil end def page_number return 1 if limit.nil? or offset.nil? or offset < 1 \ No newline at end of file