From ed85653424b3ac0935aad110ecc9798d5e3e9b72 Mon Sep 17 00:00:00 2001
From: Tom N Harris <tnharris@whoopdedo.org>
Date: Sun, 24 Jun 2012 19:13:59 -0400
Subject: [PATCH] enable ACL by default on install

---
 install.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/install.php b/install.php
index 698cd64c4..a1d406209 100644
--- a/install.php
+++ b/install.php
@@ -213,7 +213,7 @@ function print_form($d){
             <p><?php echo $lang['i_license']?></p>
             <?php
             array_unshift($license,array('name' => 'None', 'url'=>''));
-            if(!isset($d['license'])) $d['license'] = 'cc-by-sa';
+            if(empty($d['license'])) $d['license'] = 'cc-by-sa';
             foreach($license as $key => $lic){
                 echo '<label for="lic_'.$key.'">';
                 echo '<input type="radio" name="d[license]" value="'.htmlspecialchars($key).'" id="lic_'.$key.'"'.
@@ -254,7 +254,7 @@ function print_retry() {
 function check_data(&$d){
     static $form_default = array(
         'title'     => '',
-        'acl'       => '0',
+        'acl'       => '1',
         'superuser' => '',
         'fullname'  => '',
         'email'     => '',
-- 
GitLab