]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fixup database interface and correct the flagged notice
authorEvan Prodromou <evan@status.net>
Sat, 7 Nov 2009 18:39:26 +0000 (13:39 -0500)
committerEvan Prodromou <evan@status.net>
Sat, 7 Nov 2009 18:39:26 +0000 (13:39 -0500)
plugins/UserFlag/UserFlagPlugin.php

index c2716c2e11e3b5aaa675aa38dd054493ebadc431..fbe5fd3519b4929790606b48ea98d73bbb6ce1b4 100644 (file)
@@ -51,13 +51,13 @@ class UserFlagPlugin extends Plugin
 
         $schema->ensureTable('user_flag_profile',
                              array(new ColumnDef('profile_id', 'integer', null,
-                                                 null, 'PRI'),
+                                                 false, 'PRI'),
                                    new ColumnDef('user_id', 'integer', null,
-                                                 null, 'PRI'),
+                                                 false, 'PRI'),
                                    new ColumnDef('created', 'datetime', null,
-                                                 null, 'MUL'),
+                                                 false, 'MUL'),
                                    new ColumnDef('cleared', 'datetime', null,
-                                                 null, 'MUL')));
+                                                 true, 'MUL')));
 
         return true;
     }
@@ -102,7 +102,7 @@ class UserFlagPlugin extends Plugin
             $action->elementStart('li', 'entity_flag');
 
             if (User_flag_profile::exists($profile->id, $user->id)) {
-                $action->element('span',
+                $action->element('span', array(),
                                  _('Flagged for review'));
             } else {
                 $form = new FlagProfileForm($action, $profile,