From 3e67cdc501f521d1a11b574aa609077e260d6e37 Mon Sep 17 00:00:00 2001 From: Wyatt Date: Thu, 1 Jun 2017 23:20:40 -0500 Subject: [PATCH] Allows a null location value for importing LDAP users (#3598) * Allows a null location value for importing LDAP users * Forgot you need to set the variable to null.. --- app/Console/Commands/LdapSync.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 app/Console/Commands/LdapSync.php diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.php old mode 100644 new mode 100755 index 3b10b6e4c7..162a65d5a8 --- a/app/Console/Commands/LdapSync.php +++ b/app/Console/Commands/LdapSync.php @@ -90,11 +90,11 @@ class LdapSync extends Command LOG::debug('Location ID '.$this->option('location_id').' passed'); LOG::debug('Importing to '.$location->name.' ('.$location->id.')'); } else { - $location = new Location; - } + $location = NULL; + } if (!isset($location)) { - LOG::debug('That location is invalid, so no location will be assigned by default.'); + LOG::debug('That location is invalid or a location was not provided, so no location will be assigned by default.'); } // Grab subsets based on location-specific DNs, and overwrite location for these users.