Fix variable not defined error
This commit is contained in:
parent
47ba44fe04
commit
6b4fa801bc
@ -231,17 +231,6 @@ class photoannotation_Core {
|
||||
return $notification_settings;
|
||||
}
|
||||
|
||||
public static function get_user_cloud() {
|
||||
$users = ORM::factory("user")->order_by("name", "ASC")->find_all();
|
||||
foreach ($users as $user) {
|
||||
$items_users_count = ORM::factory("items_user")->where("user_id", "=", $user->id)->count_all();
|
||||
if ($items_users_count > 0) {
|
||||
$user_array[] = $user->display_name();
|
||||
}
|
||||
}
|
||||
return $user_array;
|
||||
}
|
||||
|
||||
static function cloud($count) {
|
||||
$users = ORM::factory("user")->order_by("name", "ASC")->find_all();
|
||||
if ($users) {
|
||||
@ -262,12 +251,13 @@ class photoannotation_Core {
|
||||
$user_array[$user->name]->url = user_profile::url($user->id);
|
||||
}
|
||||
}
|
||||
if (isset($user_array)) {
|
||||
$cloud->users = array_slice($user_array, 0, $count);
|
||||
$cloud->max_count = $maxcount;
|
||||
if (!$cloud->max_count) {
|
||||
return;
|
||||
}
|
||||
return $cloud;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ class photoannotation_theme_Core {
|
||||
} else {
|
||||
$border_thickness = "1px";
|
||||
}
|
||||
if (!$noborder || !$noeditablehover || !$nohover) {
|
||||
if (!$noborder || !$noclickablehover || !$nohover) {
|
||||
if (!$noborder) {
|
||||
$v .= ".image-annotate-area {\n
|
||||
border: 1px solid ". $bordercolor .";\n
|
||||
|
Reference in New Issue
Block a user