Skip to content

Commit

Permalink
Bug Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
francis94c committed Dec 27, 2019
1 parent 90c7651 commit e30a3d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/GMail.php
Expand Up @@ -24,7 +24,7 @@ function __construct($params=null)

spl_autoload_register(function($name) {
if (file_exists(APPPATH.'splints/'.self::PACKAGE."/libraries/$name.php")) {
require(APPPATH.'splints/'.self::PACKAGE."/libraries/$name.php");
require(APPPATH.'splints/'.self::PACKAGE."/libraries/$name.php");
}
});
}
Expand Down Expand Up @@ -255,7 +255,7 @@ public function getMessages(string $userId='me', array $labelIds=null,
if ($maxMessages != null) $query['maxResults'] = $maxMessages;

list($code, $response) = (new GMailCURL(GMailCURL::GET))(
self::API . "$userId/messages?" . http_build_query($query),
self::API . "$userId/messages" . build_url_query($query),
["Authorization: Bearer $this->token"]
);

Expand Down

0 comments on commit e30a3d2

Please sign in to comment.