Commit 234dafd3 authored by sebastian's avatar sebastian

ZP-563 #comment honour -u parameter when listing devices

git-svn-id: https://z-push.org/svn/z-push/trunk@1941 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent a5d989a0
......@@ -465,10 +465,18 @@ class ZPushAdminCLI {
static public function CommandDeviceUsers() {
$users = ZPushAdmin::ListUsers(self::$device);
if (empty($users))
if (empty($users)) {
echo "\tno user data synchronized to device\n";
}
// if a user is specified, we only want to see the devices of this one
else if (self::$user !== false && !in_array(self::$user, $users)) {
printf("\tuser '%s' not known in device data '%s'\n", self::$user, self::$device);
}
foreach ($users as $user) {
if (self::$user !== false && strtolower($user) !== self::$user) {
continue;
}
echo "Synchronized by user: ". $user. "\n";
self::printDeviceData(self::$device, $user);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment