]> ruin.nu Git - ndwebbie.git/blobdiff - ND/Web/Pages/Settings.pm
minor fix
[ndwebbie.git] / ND / Web / Pages / Settings.pm
index d306728dd4088ffba5bdcd6d101dc0b832b751b6..0d0e6f6d3aff1b4c6f0cdc1325d69c44f9ea630c 100644 (file)
@@ -36,12 +36,12 @@ sub render_body {
 
        if (defined param 'cmd'){
                if(param('cmd') eq 'stylesheet'){
-                       my $query = $DBH->prepare(q{UPDATE users SET css = NULLIF($2,'') WHERE uid = $1});
+                       my $query = $DBH->prepare(q{UPDATE users SET css = NULLIF($2,'Default') WHERE uid = $1});
                        $query->execute($ND::UID,escapeHTML(param 'stylesheet')) or $ND::ERROR .= p $DBH->errstr;
                }
        }
        my ($css) = $DBH->selectrow_array(q{SELECT css FROM users WHERE uid = $1},undef,$ND::UID);
-       my @stylesheets = ({Style => ' '});
+       my @stylesheets = ({Style => 'Default'});
        $css = '' unless defined $css;
        while (<stylesheets/*.css>){
                if(m{stylesheets/(\w+)\.css}){