Skip to content

Commit

Permalink
fix php_calendar example (Kalabasa#12)
Browse files Browse the repository at this point in the history
Co-authored-by: Atmos4 <[email protected]>
  • Loading branch information
Atmos4 and Atmos4 authored Feb 21, 2024
1 parent b23b351 commit eda6e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/php_calendar/util/persist.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
function load_calendar() {
$cookie = $_COOKIE['calendar'];
$cookie = $_COOKIE['calendar'] ?? null;
if (isset($cookie)) return unserialize(base64_decode($cookie));
return [];
}
Expand Down

0 comments on commit eda6e50

Please sign in to comment.