diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2022-03-09 21:26:46 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2022-03-09 21:26:46 +0100 |
commit | 82a3901a6d68f088aff335a1bc88b9878e17e990 (patch) | |
tree | c2d21122fa8104cb393b7dd83d9379bceaf27954 /includes/admin/views/giglog_admin_page.php | |
parent | 06d0591af5f2c9e0ce1c4269c55a503e9956759d (diff) | |
download | gigologadmin-82a3901a6d68f088aff335a1bc88b9878e17e990.tar.gz gigologadmin-82a3901a6d68f088aff335a1bc88b9878e17e990.tar.bz2 gigologadmin-82a3901a6d68f088aff335a1bc88b9878e17e990.zip |
Fix various psalm errors.
Diffstat (limited to 'includes/admin/views/giglog_admin_page.php')
-rw-r--r-- | includes/admin/views/giglog_admin_page.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php index 13c08b9..b0b018c 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -158,7 +158,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { ]; $concert = GiglogAdmin_Concert::get(intval($_POST['pid'])); - if ($concert->update((object) $attributes)) { + if ($concert && $concert->update((object) $attributes)) { // let user know the concert was updated. // Look into admin_notices } |