Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix fix Add progress bar class for display in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
c12simple committed Nov 25, 2014
1 parent a49b98c commit 6f1b00c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/auth.ldap/class.ldapAuthDriver.php
Expand Up @@ -315,7 +315,7 @@ public function getUserEntries($login = null, $countOnly = false, $offset = -1,
$index = 0;

//Update progress bar in CLI mode
$isListAll = (($offset == -1) && ($limit == -1) && (is_null($login)) && $regexpOnSearchAttr);
$isListAll = (($offset == -1) && ($limit == -1) && (is_null($login)) && $regexpOnSearchAttr && (php_sapi_name() == "cli"));
if($isListAll){
$progressBar = new AJXP_ProgressBarCLI();
$progressBar->init($index, $this->getCountFromCache()["count"], "Get ldap users");
Expand Down

0 comments on commit 6f1b00c

Please sign in to comment.