From: <var...@us...> - 2014-11-17 14:57:12
|
Revision: 9318 http://sourceforge.net/p/phpwiki/code/9318 Author: vargenau Date: 2014-11-17 14:57:05 +0000 (Mon, 17 Nov 2014) Log Message: ----------- Remove unused parameter Modified Paths: -------------- trunk/lib/Google.php Modified: trunk/lib/Google.php =================================================================== --- trunk/lib/Google.php 2014-11-17 14:54:11 UTC (rev 9317) +++ trunk/lib/Google.php 2014-11-17 14:57:05 UTC (rev 9318) @@ -158,7 +158,7 @@ class Google { - function Google($maxResults = 10, $license_key = false, $proxy = false) + function Google($maxResults = 10, $license_key = false) { if ($license_key) $this->license_key = $license_key; @@ -255,7 +255,7 @@ * The return type for cached pages is base64 encoded text. * * @param string $url - full URL to the page to retrieve - * @return string full text of the cached page + * @return string|bool full text of the cached page */ function doGetCachedPage($url) { @@ -264,7 +264,9 @@ // This method gets created automatically!! (some eval'ed code from the soap request) $result = $this->proxy->doGetCachedPage($this->license_key, $url); - if (!empty($result)) return base64_decode($result); + if (!empty($result)) + return base64_decode($result); + return false; } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |