diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-04-14 00:22:58 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-04-14 00:22:58 +0200 |
commit | e618cdb494702dee8a62221bbafe2da61faba308 (patch) | |
tree | 06848a23562c3d02282fd6051bd1d82e3bae76dd /includes/admin/views | |
parent | 52669bd198671f275902f705d3b630a4b2d7c1b8 (diff) | |
download | gigologadmin-e618cdb494702dee8a62221bbafe2da61faba308.tar.gz gigologadmin-e618cdb494702dee8a62221bbafe2da61faba308.tar.bz2 gigologadmin-e618cdb494702dee8a62221bbafe2da61faba308.zip |
Make Concert constructor public.
Also allow it to default initialize when passing no args. Not entirely
sure about making this interface public.
Diffstat (limited to 'includes/admin/views')
-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 8228f38..5749bab 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -141,7 +141,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { if(isset($_POST['edit']) && $_POST['edit']=="EDIT" && !empty($cid)) //A bit overdoing with the checks if concert ID is empty both here and in find_cid. But based on that, things are NULL or not. Better ideas? $c = GiglogAdmin_Concert::find_cid($cid); else - $c = GiglogAdmin_Concert::find_cid(''); + $c = new GiglogAdmin_Concert(); $content='<form method="POST" action="" class="concedit" > Form to create/edit concerts, bands, venues<br>' .'<input type="hidden" name="pid" value="' .$c->id(). '" />' |