Skip to content

Commit

Permalink
Little bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK32 committed Aug 5, 2011
1 parent 428992a commit 7064e67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ties/base.rb
Expand Up @@ -19,7 +19,7 @@ def all(options = {})
begin
@results.concat self.get(page, options)
page += 1
end until self.total_pages <= page
end until self.total_pages.nil? || self.total_pages <= page
@results
end

Expand Down
2 changes: 1 addition & 1 deletion lib/ties/schedule.rb
Expand Up @@ -16,7 +16,7 @@ def initialize(ties)
@ties = ties
end
def get(page = 1, options = {})
return false if options["StudentId"].nil?
raise 'Missing student id' if options["StudentId"].nil?
options.merge!({'IsScheduled' => 'true'})
result = @ties.send_request('Schedule/RequestedClasses/%i' % page, options)
return [] unless result
Expand Down

0 comments on commit 7064e67

Please sign in to comment.