@@ -27,10 +27,10 @@ |
||
| 27 | 27 | * @param string $msg =null message, default "Permission denied!" |
| 28 | 28 | * @param int $code =100 numerical code, default 100 |
| 29 | 29 | */ |
| 30 | - function __construct($msg=null,$code=100) |
|
| 30 | + function __construct($msg = null, $code = 100) |
|
| 31 | 31 | { |
| 32 | 32 | if (is_null($msg)) $msg = lang('Permisson denied!'); |
| 33 | 33 | |
| 34 | - parent::__construct($msg,$code); |
|
| 34 | + parent::__construct($msg, $code); |
|
| 35 | 35 | } |
| 36 | 36 | } |
@@ -99,13 +99,13 @@ discard block |
||
| 99 | 99 | * @param array $params =array() additional parameters, row is always first parameter |
| 100 | 100 | * @param $key_callback =null optional callback, if you want different keys |
| 101 | 101 | */ |
| 102 | - public function __construct(\Traversable $rs, $callback, $params=array(), $key_callback=null) |
|
| 102 | + public function __construct(\Traversable $rs, $callback, $params = array(), $key_callback = null) |
|
| 103 | 103 | { |
| 104 | 104 | $this->callback = $callback; |
| 105 | 105 | $this->params = $params; |
| 106 | 106 | $this->key_callback = $key_callback; |
| 107 | 107 | |
| 108 | - if (is_a($rs,'IteratorAggregate')) |
|
| 108 | + if (is_a($rs, 'IteratorAggregate')) |
|
| 109 | 109 | { |
| 110 | 110 | $this->rs = $rs->getIterator(); |
| 111 | 111 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | */ |
| 123 | 123 | public function current() |
| 124 | 124 | { |
| 125 | - if (is_a($this->rs,'iterator')) |
|
| 125 | + if (is_a($this->rs, 'iterator')) |
|
| 126 | 126 | { |
| 127 | 127 | $params = $this->params; |
| 128 | 128 | array_unshift($params, $this->rs->current()); |
@@ -138,11 +138,10 @@ discard block |
||
| 138 | 138 | */ |
| 139 | 139 | public function key() |
| 140 | 140 | { |
| 141 | - if (is_a($this->rs,'iterator')) |
|
| 141 | + if (is_a($this->rs, 'iterator')) |
|
| 142 | 142 | { |
| 143 | 143 | return $this->key_callback ? |
| 144 | - call_user_func($this->key_callback, $this->rs->current()) : |
|
| 145 | - $this->rs->key(); |
|
| 144 | + call_user_func($this->key_callback, $this->rs->current()) : $this->rs->key(); |
|
| 146 | 145 | } |
| 147 | 146 | return 0; |
| 148 | 147 | } |
@@ -152,7 +151,7 @@ discard block |
||
| 152 | 151 | */ |
| 153 | 152 | public function next() |
| 154 | 153 | { |
| 155 | - if (is_a($this->rs,'iterator')) |
|
| 154 | + if (is_a($this->rs, 'iterator')) |
|
| 156 | 155 | { |
| 157 | 156 | return $this->rs->next(); |
| 158 | 157 | } |
@@ -163,7 +162,7 @@ discard block |
||
| 163 | 162 | */ |
| 164 | 163 | public function rewind() |
| 165 | 164 | { |
| 166 | - if (is_a($this->rs,'iterator')) |
|
| 165 | + if (is_a($this->rs, 'iterator')) |
|
| 167 | 166 | { |
| 168 | 167 | return $this->rs->rewind(); |
| 169 | 168 | } |
@@ -174,9 +173,9 @@ discard block |
||
| 174 | 173 | * |
| 175 | 174 | * @return boolean |
| 176 | 175 | */ |
| 177 | - public function valid () |
|
| 176 | + public function valid() |
|
| 178 | 177 | { |
| 179 | - if (is_a($this->rs,'iterator')) |
|
| 178 | + if (is_a($this->rs, 'iterator')) |
|
| 180 | 179 | { |
| 181 | 180 | return $this->rs->valid(); |
| 182 | 181 | } |
@@ -27,10 +27,10 @@ |
||
| 27 | 27 | * @param string $msg =null message, default "Database error!" |
| 28 | 28 | * @param int $code =100 |
| 29 | 29 | */ |
| 30 | - function __construct($msg=null,$code=100) |
|
| 30 | + function __construct($msg = null, $code = 100) |
|
| 31 | 31 | { |
| 32 | 32 | if (is_null($msg)) $msg = lang('Database error!'); |
| 33 | 33 | |
| 34 | - parent::__construct($msg,$code); |
|
| 34 | + parent::__construct($msg, $code); |
|
| 35 | 35 | } |
| 36 | 36 | } |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * @return ADORecordSet or false, if the query fails |
| 55 | 55 | * @throws EGroupware\Api\Db\Exception\InvalidSql with $this->Link_ID->ErrorNo() as code |
| 56 | 56 | */ |
| 57 | - function query($Query_String, $line = '', $file = '', $offset=0, $num_rows=-1, $inputarr=false, $fetchmode=self::FETCH_BOTH, $reconnect=true) |
|
| 57 | + function query($Query_String, $line = '', $file = '', $offset = 0, $num_rows = -1, $inputarr = false, $fetchmode = self::FETCH_BOTH, $reconnect = true) |
|
| 58 | 58 | { |
| 59 | 59 | // New query, discard previous result. |
| 60 | 60 | if ($this->Query_ID) |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | function free() |
| 104 | 104 | { |
| 105 | - unset($this->Query_ID); // else copying of the db-object does not work |
|
| 105 | + unset($this->Query_ID); // else copying of the db-object does not work |
|
| 106 | 106 | $this->Query_ID = 0; |
| 107 | 107 | } |
| 108 | 108 | |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * @param int $fetch_mode self::FETCH_BOTH = numerical+assoc keys (eGW default), self::FETCH_ASSOC or self::FETCH_NUM |
| 116 | 116 | * @return bool was another row found? |
| 117 | 117 | */ |
| 118 | - function next_record($fetch_mode=self::FETCH_BOTH) |
|
| 118 | + function next_record($fetch_mode = self::FETCH_BOTH) |
|
| 119 | 119 | { |
| 120 | 120 | if (!$this->Query_ID) |
| 121 | 121 | { |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | } |
| 136 | 136 | if ($this->capabilities[self::CAPABILITY_NAME_CASE] == 'upper') // maxdb, oracle, ... |
| 137 | 137 | { |
| 138 | - switch($fetch_mode) |
|
| 138 | + switch ($fetch_mode) |
|
| 139 | 139 | { |
| 140 | 140 | case self::FETCH_ASSOC: |
| 141 | 141 | $this->Record = array_change_key_case($this->Record); |
@@ -172,9 +172,9 @@ discard block |
||
| 172 | 172 | */ |
| 173 | 173 | function seek($pos = 0) |
| 174 | 174 | { |
| 175 | - if (!$this->Query_ID || !$this->Query_ID->Move($this->Row = $pos)) |
|
| 175 | + if (!$this->Query_ID || !$this->Query_ID->Move($this->Row = $pos)) |
|
| 176 | 176 | { |
| 177 | - throw new Exception("seek($pos) failed: resultset has " . $this->num_rows() . " rows"); |
|
| 177 | + throw new Exception("seek($pos) failed: resultset has ".$this->num_rows()." rows"); |
|
| 178 | 178 | } |
| 179 | 179 | return True; |
| 180 | 180 | } |
@@ -187,9 +187,9 @@ discard block |
||
| 187 | 187 | * @param string $mode type of lock required (optional), default write |
| 188 | 188 | * @return bool True if sucessful, False if fails |
| 189 | 189 | */ |
| 190 | - function lock($table, $mode='write') |
|
| 190 | + function lock($table, $mode = 'write') |
|
| 191 | 191 | { |
| 192 | - unset($table, $mode); // not used anymore |
|
| 192 | + unset($table, $mode); // not used anymore |
|
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
@@ -278,18 +278,18 @@ discard block |
||
| 278 | 278 | * @param string $strip ='' string to strip of the column-name, default '' |
| 279 | 279 | * @return array/bool the associative array or False if no (more) result-row is availible |
| 280 | 280 | */ |
| 281 | - function row($do_next_record=False,$strip='') |
|
| 281 | + function row($do_next_record = False, $strip = '') |
|
| 282 | 282 | { |
| 283 | 283 | if ($do_next_record && !$this->next_record(self::FETCH_ASSOC) || !is_array($this->Record)) |
| 284 | 284 | { |
| 285 | 285 | return False; |
| 286 | 286 | } |
| 287 | 287 | $result = array(); |
| 288 | - foreach($this->Record as $column => $value) |
|
| 288 | + foreach ($this->Record as $column => $value) |
|
| 289 | 289 | { |
| 290 | 290 | if (!is_numeric($column)) |
| 291 | 291 | { |
| 292 | - if ($strip) $column = str_replace($strip,'',$column); |
|
| 292 | + if ($strip) $column = str_replace($strip, '', $column); |
|
| 293 | 293 | |
| 294 | 294 | $result[$column] = $value; |
| 295 | 295 | } |
@@ -64,12 +64,12 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | static $sub_objects = array( |
| 66 | 66 | 'log' => 'errorlog', |
| 67 | - 'link' => 'bolink', // depricated use static egw_link methods |
|
| 67 | + 'link' => 'bolink', // depricated use static egw_link methods |
|
| 68 | 68 | 'datetime' => 'egw_datetime', |
| 69 | 69 | // classes moved to new api dir |
| 70 | 70 | 'template' => true, |
| 71 | 71 | 'applications' => 'EGroupware\\Api\\Egw\\Applications', |
| 72 | - 'framework' => true, // special handling in __get() |
|
| 72 | + 'framework' => true, // special handling in __get() |
|
| 73 | 73 | 'ldap' => true, |
| 74 | 74 | ); |
| 75 | 75 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | { |
| 96 | 96 | //error_log(__METHOD__."($name)".function_backtrace()); |
| 97 | 97 | |
| 98 | - if ($name == 'js') $name = 'framework'; // javascript class is integrated now into framework |
|
| 98 | + if ($name == 'js') $name = 'framework'; // javascript class is integrated now into framework |
|
| 99 | 99 | |
| 100 | 100 | if (isset($this->$name)) |
| 101 | 101 | { |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | if ($name != 'ADOdb') error_log(__METHOD__.": There's NO $name object! ".function_backtrace()); |
| 108 | 108 | return null; |
| 109 | 109 | } |
| 110 | - switch($name) |
|
| 110 | + switch ($name) |
|
| 111 | 111 | { |
| 112 | 112 | case 'framework': |
| 113 | 113 | return $this->framework = Api\Framework::factory(); |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | * @param array $keys if given $keys are copied to data before saveing => allows a save as |
| 36 | 36 | * @return int 0 on success and errno != 0 else |
| 37 | 37 | */ |
| 38 | - function save($keys=null) |
|
| 38 | + function save($keys = null) |
|
| 39 | 39 | { |
| 40 | 40 | // UCS lowercases email when storing |
| 41 | 41 | $keys['email'] = strtolower(!empty($keys['email']) ? $keys['email'] : $this->data['email']); |
@@ -66,10 +66,10 @@ discard block |
||
| 66 | 66 | function getChild($name) |
| 67 | 67 | { |
| 68 | 68 | //error_log(__METHOD__."('$name') this->path=$this->path, this->vfs_path=$this->vfs_path"); |
| 69 | - $path = $this->vfs_path . '/' . $name; |
|
| 70 | - $vfs_path = $this->vfs_path . '/' . Vfs::encodePathComponent($name); |
|
| 69 | + $path = $this->vfs_path.'/'.$name; |
|
| 70 | + $vfs_path = $this->vfs_path.'/'.Vfs::encodePathComponent($name); |
|
| 71 | 71 | |
| 72 | - if (!Vfs::file_exists($vfs_path)) throw new DAV\Exception\NotFound('File with name ' . $path . ' could not be located'); |
|
| 72 | + if (!Vfs::file_exists($vfs_path)) throw new DAV\Exception\NotFound('File with name '.$path.' could not be located'); |
|
| 73 | 73 | |
| 74 | 74 | if (Vfs::is_dir($vfs_path)) |
| 75 | 75 | { |
@@ -88,6 +88,6 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | function getQuotaInfo() |
| 90 | 90 | { |
| 91 | - return [ false, false ]; |
|
| 91 | + return [false, false]; |
|
| 92 | 92 | } |
| 93 | 93 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * @param boolean $store_request =false if true whole request data will be made available in $this->request |
| 98 | 98 | * @access public |
| 99 | 99 | */ |
| 100 | - function __construct($path, $store_request=false) |
|
| 100 | + function __construct($path, $store_request = false) |
|
| 101 | 101 | { |
| 102 | 102 | $this->success = true; |
| 103 | 103 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | xml_parser_set_option($xml_parser, |
| 124 | 124 | XML_OPTION_CASE_FOLDING, false); |
| 125 | 125 | |
| 126 | - while($this->success && !feof($f_in)) { |
|
| 126 | + while ($this->success && !feof($f_in)) { |
|
| 127 | 127 | $line = fgets($f_in); |
| 128 | 128 | if ($store_request) $this->request .= $line; |
| 129 | 129 | if (is_string($line)) { |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | } |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - if($had_input) { |
|
| 135 | + if ($had_input) { |
|
| 136 | 136 | $this->success &= xml_parse($xml_parser, "", true); |
| 137 | 137 | } |
| 138 | 138 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | $prop = array("name" => $tag); |
| 170 | 170 | $this->current = array("name" => $tag, "ns" => $ns, "status"=> 200); |
| 171 | 171 | if ($this->mode == "set") { |
| 172 | - $this->current["val"] = ""; // default set val |
|
| 172 | + $this->current["val"] = ""; // default set val |
|
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | $this->current["val"] .= "<$tag"; |
| 178 | 178 | if (isset($attr)) { |
| 179 | 179 | foreach ($attr as $key => $val) { |
| 180 | - $this->current["val"] .= ' '.$key.'="'.str_replace('"','"', $val).'"'; |
|
| 180 | + $this->current["val"] .= ' '.$key.'="'.str_replace('"', '"', $val).'"'; |
|
| 181 | 181 | } |
| 182 | 182 | } |
| 183 | 183 | $this->current["val"] .= ">"; |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | function PROPFIND(&$options, &$files) |
| 152 | 152 | { |
| 153 | 153 | // get absolute fs path to requested resource |
| 154 | - $fspath = $this->base . $options["path"]; |
|
| 154 | + $fspath = $this->base.$options["path"]; |
|
| 155 | 155 | |
| 156 | 156 | // sanity check |
| 157 | 157 | if (!file_exists($fspath)) { |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | function fileinfo($path) |
| 199 | 199 | { |
| 200 | 200 | // map URI path to filesystem path |
| 201 | - $fspath = $this->base . $path; |
|
| 201 | + $fspath = $this->base.$path; |
|
| 202 | 202 | |
| 203 | 203 | // create result array |
| 204 | 204 | $info = array(); |
@@ -210,11 +210,11 @@ discard block |
||
| 210 | 210 | $info["props"][] = $this->mkprop("displayname", strtoupper($path)); |
| 211 | 211 | |
| 212 | 212 | // creation and modification time |
| 213 | - $info["props"][] = $this->mkprop("creationdate", filectime($fspath)); |
|
| 213 | + $info["props"][] = $this->mkprop("creationdate", filectime($fspath)); |
|
| 214 | 214 | $info["props"][] = $this->mkprop("getlastmodified", filemtime($fspath)); |
| 215 | 215 | |
| 216 | 216 | // Microsoft extensions: last access time and 'hidden' status |
| 217 | - $info["props"][] = $this->mkprop("lastaccessed", fileatime($fspath)); |
|
| 217 | + $info["props"][] = $this->mkprop("lastaccessed", fileatime($fspath)); |
|
| 218 | 218 | $info["props"][] = $this->mkprop("ishidden", ('.' === substr(basename($fspath), 0, 1))); |
| 219 | 219 | |
| 220 | 220 | // type and size (caller already made sure that path exists) |
@@ -341,8 +341,8 @@ discard block |
||
| 341 | 341 | // so we test the format of the returned string |
| 342 | 342 | |
| 343 | 343 | // the reply begins with the requested filename |
| 344 | - if (!strncmp($reply, "$fspath: ", strlen($fspath)+2)) { |
|
| 345 | - $reply = substr($reply, strlen($fspath)+2); |
|
| 344 | + if (!strncmp($reply, "$fspath: ", strlen($fspath) + 2)) { |
|
| 345 | + $reply = substr($reply, strlen($fspath) + 2); |
|
| 346 | 346 | // followed by the mime type (maybe including options) |
| 347 | 347 | if (preg_match('|^[[:alnum:]_-]+/[[:alnum:]_-]+;?.*|', $reply, $matches)) { |
| 348 | 348 | $mime_type = $matches[0]; |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | function HEAD(&$options) |
| 393 | 393 | { |
| 394 | 394 | // get absolute fs path to requested resource |
| 395 | - $fspath = $this->base . $options["path"]; |
|
| 395 | + $fspath = $this->base.$options["path"]; |
|
| 396 | 396 | |
| 397 | 397 | // sanity check |
| 398 | 398 | if (!file_exists($fspath)) return false; |
@@ -421,7 +421,7 @@ discard block |
||
| 421 | 421 | function GET(&$options) |
| 422 | 422 | { |
| 423 | 423 | // get absolute fs path to requested resource |
| 424 | - $fspath = $this->base . $options["path"]; |
|
| 424 | + $fspath = $this->base.$options["path"]; |
|
| 425 | 425 | |
| 426 | 426 | // is this a collection? |
| 427 | 427 | if (is_dir($fspath)) { |
@@ -504,14 +504,14 @@ discard block |
||
| 504 | 504 | */ |
| 505 | 505 | function PUT(&$options) |
| 506 | 506 | { |
| 507 | - $fspath = $this->base . $options["path"]; |
|
| 507 | + $fspath = $this->base.$options["path"]; |
|
| 508 | 508 | |
| 509 | 509 | $dir = dirname($fspath); |
| 510 | 510 | if (!file_exists($dir) || !is_dir($dir)) { |
| 511 | 511 | return "409 Conflict"; // TODO right status code for both? |
| 512 | 512 | } |
| 513 | 513 | |
| 514 | - $options["new"] = ! file_exists($fspath); |
|
| 514 | + $options["new"] = !file_exists($fspath); |
|
| 515 | 515 | |
| 516 | 516 | if ($options["new"] && !$this->_is_writable($dir)) { |
| 517 | 517 | return "403 Forbidden"; |
@@ -537,7 +537,7 @@ discard block |
||
| 537 | 537 | */ |
| 538 | 538 | function MKCOL($options) |
| 539 | 539 | { |
| 540 | - $path = $this->base .$options["path"]; |
|
| 540 | + $path = $this->base.$options["path"]; |
|
| 541 | 541 | $parent = dirname($path); |
| 542 | 542 | $name = basename($path); |
| 543 | 543 | |
@@ -549,7 +549,7 @@ discard block |
||
| 549 | 549 | return "403 Forbidden"; |
| 550 | 550 | } |
| 551 | 551 | |
| 552 | - if ( file_exists($parent."/".$name) ) { |
|
| 552 | + if (file_exists($parent."/".$name)) { |
|
| 553 | 553 | return "405 Method not allowed"; |
| 554 | 554 | } |
| 555 | 555 | |
@@ -574,7 +574,7 @@ discard block |
||
| 574 | 574 | */ |
| 575 | 575 | function DELETE($options) |
| 576 | 576 | { |
| 577 | - $path = $this->base . "/" .$options["path"]; |
|
| 577 | + $path = $this->base."/".$options["path"]; |
|
| 578 | 578 | |
| 579 | 579 | if (!file_exists($path)) { |
| 580 | 580 | return "404 Not found"; |
@@ -613,7 +613,7 @@ discard block |
||
| 613 | 613 | * @param array general parameter passing array |
| 614 | 614 | * @return bool true on success |
| 615 | 615 | */ |
| 616 | - function COPY($options, $del=false) |
|
| 616 | + function COPY($options, $del = false) |
|
| 617 | 617 | { |
| 618 | 618 | // TODO Property updates still broken (Litmus should detect this?) |
| 619 | 619 | |
@@ -626,7 +626,7 @@ discard block |
||
| 626 | 626 | return "502 bad gateway"; |
| 627 | 627 | } |
| 628 | 628 | |
| 629 | - $source = $this->base . $options["path"]; |
|
| 629 | + $source = $this->base.$options["path"]; |
|
| 630 | 630 | if (!file_exists($source)) { |
| 631 | 631 | return "404 Not found"; |
| 632 | 632 | } |
@@ -646,7 +646,7 @@ discard block |
||
| 646 | 646 | } |
| 647 | 647 | } |
| 648 | 648 | |
| 649 | - $dest = $this->base . $options["dest"]; |
|
| 649 | + $dest = $this->base.$options["dest"]; |
|
| 650 | 650 | $destdir = dirname($dest); |
| 651 | 651 | |
| 652 | 652 | if (!file_exists($destdir) || !is_dir($destdir)) { |
@@ -795,7 +795,7 @@ discard block |
||
| 795 | 795 | function LOCK(&$options) |
| 796 | 796 | { |
| 797 | 797 | // get absolute fs path to requested resource |
| 798 | - $fspath = $this->base . $options["path"]; |
|
| 798 | + $fspath = $this->base.$options["path"]; |
|
| 799 | 799 | |
| 800 | 800 | // TODO recursive locks on directories not supported yet |
| 801 | 801 | // makes litmus test "32. lock_collection" fail |
@@ -803,7 +803,7 @@ discard block |
||
| 803 | 803 | return "409 Conflict"; |
| 804 | 804 | } |
| 805 | 805 | |
| 806 | - $options["timeout"] = time()+300; // 5min. hardcoded |
|
| 806 | + $options["timeout"] = time() + 300; // 5min. hardcoded |
|
| 807 | 807 | |
| 808 | 808 | if (isset($options["update"])) { // Lock Update |
| 809 | 809 | $where = "WHERE path = '$options[path]' AND token = '$options[update]'"; |
@@ -822,7 +822,7 @@ discard block |
||
| 822 | 822 | |
| 823 | 823 | $options['owner'] = $row['owner']; |
| 824 | 824 | $options['scope'] = $row["exclusivelock"] ? "exclusive" : "shared"; |
| 825 | - $options['type'] = $row["exclusivelock"] ? "write" : "read"; |
|
| 825 | + $options['type'] = $row["exclusivelock"] ? "write" : "read"; |
|
| 826 | 826 | |
| 827 | 827 | return true; |
| 828 | 828 | } else { |
@@ -837,7 +837,7 @@ discard block |
||
| 837 | 837 | , modified = ".time()." |
| 838 | 838 | , owner = '$options[owner]' |
| 839 | 839 | , expires = '$options[timeout]' |
| 840 | - , exclusivelock = " .($options['scope'] === "exclusive" ? "1" : "0") |
|
| 840 | + , exclusivelock = ".($options['scope'] === "exclusive" ? "1" : "0") |
|
| 841 | 841 | ; |
| 842 | 842 | mysql_query($query); |
| 843 | 843 | |
@@ -881,7 +881,7 @@ discard block |
||
| 881 | 881 | mysql_free_result($res); |
| 882 | 882 | |
| 883 | 883 | if ($row) { |
| 884 | - $result = array( "type" => "write", |
|
| 884 | + $result = array("type" => "write", |
|
| 885 | 885 | "scope" => $row["exclusivelock"] ? "exclusive" : "shared", |
| 886 | 886 | "depth" => 0, |
| 887 | 887 | "owner" => $row['owner'], |