mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
Make the code work with or without upgrading the DB to 1.1.10.
This commit is contained in:
parent
04656674f7
commit
e8369c91fc
@ -90,6 +90,10 @@ function controlRequestContainer( $username, $user_no, $path, $caldav_context )
|
||||
* @return boolean Return true if public events only are allowed.
|
||||
*/
|
||||
function public_events_only( $user_no, $dav_name ) {
|
||||
global $c;
|
||||
// Not supported until DB versions from 1.001.010
|
||||
if ( $c->schema_version < 1001.010 ) return false;
|
||||
|
||||
$sql = "SELECT public_events_only ";
|
||||
$sql .= "FROM collection ";
|
||||
$sql .= "WHERE user_no=? AND dav_name=?";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user