Skip to content

Commit 1ad4f95

Browse files
committed
Minor - Avoid notice
1 parent e49a2aa commit 1ad4f95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/notebook.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public static function display_notes()
237237
Display::return_icon('notes_order_by_title.png', get_lang('OrderByTitle'), '', '32') . '</a>';
238238
echo '</div>';
239239

240-
if (!in_array($_SESSION['notebook_view'], array('creation_date', 'update_date', 'title'))) {
240+
if (!isset($_SESSION['notebook_view']) || !in_array($_SESSION['notebook_view'], array('creation_date', 'update_date', 'title'))) {
241241
$_SESSION['notebook_view'] = 'creation_date';
242242
}
243243

0 commit comments

Comments
 (0)