diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2022-05-04 14:18:41 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2022-05-04 14:18:41 +0000 |
| commit | 0d95625c2ab0eabe98e724ab79be0087093cc35b (patch) | |
| tree | f911e16bfb52f4aceacf9e9ad4c8d31923e26a6e /lib/object.inc.php | |
| parent | e1f835675363c17fbf5d269f6d1d1f84b6727886 (diff) | |
fix for BIESt #957
Merge request studip/studip!554
Diffstat (limited to 'lib/object.inc.php')
| -rw-r--r-- | lib/object.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/object.inc.php b/lib/object.inc.php index f7bcf90..c0c4e15 100644 --- a/lib/object.inc.php +++ b/lib/object.inc.php @@ -104,7 +104,7 @@ function object_get_visit($object_id, $plugin_id, $mode = "last", $open_object_i $cache[$object_id][$plugin_id][$user_id] = null; } - if ($cache[$object_id][$plugin_id][$user_id]) { + if (isset($cache[$object_id][$plugin_id][$user_id])) { return $mode == 'last' ? $cache[$object_id][$plugin_id][$user_id]['last_visitdate'] : $cache[$object_id][$plugin_id][$user_id]['visitdate']; |
