Changeset 30:ea0c606bab6f for inc/core/class.dc.workspace.php
- Timestamp:
- 04/27/11 21:45:55 (14 years ago)
- Branch:
- userprefs
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.workspace.php
r13 r30 264 264 265 265 @param id <b>string</b> Pref ID 266 */ 267 public function drop($id) 266 @param force_global <b>boolean</b> Force global pref drop 267 */ 268 public function drop($id,$force_global=false) 268 269 { 269 270 if (!$this->ws) { … … 273 274 $strReq = 'DELETE FROM '.$this->table.' '; 274 275 275 if ( $this->user_id === null) {276 if (($force_global) || ($this->user_id === null)) { 276 277 $strReq .= 'WHERE user_id IS NULL '; 277 278 $global = true;
Note: See TracChangeset
for help on using the changeset viewer.