Permalink
Browse files

Suppressing PHP Warnings when directory look-up fails.

We are already handling the error in the 'else' clause, so the warning is
superfluous.
  • Loading branch information...
1 parent 9d8e696 commit 220f160cd9d36a4ea2d51933ed076e8d7d5b5b14 @adamfranco committed Mar 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/oki2/agentmanagement/AuthNMethods/CASAuthNMethod.class.php
View
2 core/oki2/agentmanagement/AuthNMethods/CASAuthNMethod.class.php
@@ -446,7 +446,7 @@ public function _queryDirectory ($action, $params = array()) {
$url = $this->directoryUrl.'?'.http_build_query($allParams, null, '&');
- if($doc->load($url))
+ if(@$doc->load($url))
return $doc;
else {
$paramstring = '';

0 comments on commit 220f160

Please sign in to comment.