@@ -407,8 +407,7 @@ discard block |
||
| 407 | 407 | { |
| 408 | 408 | $this->width = $this->orig_height; |
| 409 | 409 | $this->height = $this->orig_width; |
| 410 | - } |
|
| 411 | - else |
|
| 410 | + } else |
|
| 412 | 411 | { |
| 413 | 412 | $this->width = $this->orig_width; |
| 414 | 413 | $this->height = $this->orig_height; |
@@ -502,8 +501,7 @@ discard block |
||
| 502 | 501 | { |
| 503 | 502 | $create = 'imagecreatetruecolor'; |
| 504 | 503 | $copy = 'imagecopyresampled'; |
| 505 | - } |
|
| 506 | - else |
|
| 504 | + } else |
|
| 507 | 505 | { |
| 508 | 506 | $create = 'imagecreate'; |
| 509 | 507 | $copy = 'imagecopyresized'; |
@@ -1010,25 +1008,27 @@ discard block |
||
| 1010 | 1008 | // invert the offset. Note: The horizontal |
| 1011 | 1009 | // offset flips itself automatically |
| 1012 | 1010 | |
| 1013 | - if ($this->wm_vrt_alignment == 'B') |
|
| 1014 | - $this->wm_vrt_offset = $this->wm_vrt_offset * -1; |
|
| 1011 | + if ($this->wm_vrt_alignment == 'B') { |
|
| 1012 | + $this->wm_vrt_offset = $this->wm_vrt_offset * -1; |
|
| 1013 | + } |
|
| 1015 | 1014 | |
| 1016 | - if ($this->wm_hor_alignment == 'R') |
|
| 1017 | - $this->wm_hor_offset = $this->wm_hor_offset * -1; |
|
| 1015 | + if ($this->wm_hor_alignment == 'R') { |
|
| 1016 | + $this->wm_hor_offset = $this->wm_hor_offset * -1; |
|
| 1017 | + } |
|
| 1018 | 1018 | |
| 1019 | 1019 | // Set font width and height |
| 1020 | 1020 | // These are calculated differently depending on |
| 1021 | 1021 | // whether we are using the true type font or not |
| 1022 | 1022 | if ($this->wm_use_truetype == TRUE) |
| 1023 | 1023 | { |
| 1024 | - if ($this->wm_font_size == '') |
|
| 1025 | - $this->wm_font_size = '17'; |
|
| 1024 | + if ($this->wm_font_size == '') { |
|
| 1025 | + $this->wm_font_size = '17'; |
|
| 1026 | + } |
|
| 1026 | 1027 | |
| 1027 | 1028 | $fontwidth = $this->wm_font_size - ($this->wm_font_size / 4); |
| 1028 | 1029 | $fontheight = $this->wm_font_size; |
| 1029 | 1030 | $this->wm_vrt_offset += $this->wm_font_size; |
| 1030 | - } |
|
| 1031 | - else |
|
| 1031 | + } else |
|
| 1032 | 1032 | { |
| 1033 | 1033 | $fontwidth = imagefontwidth($this->wm_font_size); |
| 1034 | 1034 | $fontheight = imagefontheight($this->wm_font_size); |
@@ -1065,13 +1065,15 @@ discard block |
||
| 1065 | 1065 | case "L": |
| 1066 | 1066 | break; |
| 1067 | 1067 | case "R": |
| 1068 | - if ($this->wm_use_drop_shadow) |
|
| 1069 | - $x_shad += ($this->orig_width - $fontwidth * strlen($this->wm_text)); |
|
| 1068 | + if ($this->wm_use_drop_shadow) { |
|
| 1069 | + $x_shad += ($this->orig_width - $fontwidth * strlen($this->wm_text)); |
|
| 1070 | + } |
|
| 1070 | 1071 | $x_axis += ($this->orig_width - $fontwidth * strlen($this->wm_text)); |
| 1071 | 1072 | break; |
| 1072 | 1073 | case "C": |
| 1073 | - if ($this->wm_use_drop_shadow) |
|
| 1074 | - $x_shad += floor(($this->orig_width - $fontwidth * strlen($this->wm_text)) / 2); |
|
| 1074 | + if ($this->wm_use_drop_shadow) { |
|
| 1075 | + $x_shad += floor(($this->orig_width - $fontwidth * strlen($this->wm_text)) / 2); |
|
| 1076 | + } |
|
| 1075 | 1077 | $x_axis += floor(($this->orig_width - $fontwidth * strlen($this->wm_text)) / 2); |
| 1076 | 1078 | break; |
| 1077 | 1079 | } |
@@ -1400,8 +1402,7 @@ discard block |
||
| 1400 | 1402 | if ($vals['new_width'] == 0) |
| 1401 | 1403 | { |
| 1402 | 1404 | $vals['new_width'] = ceil($vals['width'] * $vals['new_height'] / $vals['height']); |
| 1403 | - } |
|
| 1404 | - elseif ($vals['new_height'] == 0) |
|
| 1405 | + } elseif ($vals['new_height'] == 0) |
|
| 1405 | 1406 | { |
| 1406 | 1407 | $vals['new_height'] = ceil($vals['new_width'] * $vals['height'] / $vals['width']); |
| 1407 | 1408 | } |
@@ -1062,9 +1062,11 @@ |
||
| 1062 | 1062 | { |
| 1063 | 1063 | $output = array(); |
| 1064 | 1064 | @exec('file --brief --mime-type '.escapeshellarg($file['tmp_path']), $output, $return_code); |
| 1065 | - if ($return_code === 0 && strlen($output[0]) > 0) // A return status code != 0 would mean failed execution |
|
| 1065 | + if ($return_code === 0 && strlen($output[0]) > 0) { |
|
| 1066 | + // A return status code != 0 would mean failed execution |
|
| 1066 | 1067 | { |
| 1067 | 1068 | $this->file_type = rtrim($output[0]); |
| 1069 | + } |
|
| 1068 | 1070 | return; |
| 1069 | 1071 | } |
| 1070 | 1072 | } |
@@ -274,8 +274,7 @@ discard block |
||
| 274 | 274 | if (is_array($val)) |
| 275 | 275 | { |
| 276 | 276 | $output .= "<pre>".htmlspecialchars(stripslashes(print_r($val, true)))."</pre>"; |
| 277 | - } |
|
| 278 | - else |
|
| 277 | + } else |
|
| 279 | 278 | { |
| 280 | 279 | $output .= htmlspecialchars(stripslashes($val)); |
| 281 | 280 | } |
@@ -322,8 +321,7 @@ discard block |
||
| 322 | 321 | if (is_array($val)) |
| 323 | 322 | { |
| 324 | 323 | $output .= "<pre>".htmlspecialchars(stripslashes(print_r($val, TRUE)))."</pre>"; |
| 325 | - } |
|
| 326 | - else |
|
| 324 | + } else |
|
| 327 | 325 | { |
| 328 | 326 | $output .= htmlspecialchars(stripslashes($val)); |
| 329 | 327 | } |
@@ -11,21 +11,25 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 | $this->page++; |
| 14 | - if(!isset($this->pages[$this->page])) // solves the problem of overwriting a page if it already exists |
|
| 14 | + if(!isset($this->pages[$this->page])) { |
|
| 15 | + // solves the problem of overwriting a page if it already exists |
|
| 15 | 16 | $this->pages[$this->page] = ''; |
| 17 | + } |
|
| 16 | 18 | $this->state =2; |
| 17 | 19 | $this->x = $this->lMargin; |
| 18 | 20 | $this->y = $this->tMargin; |
| 19 | 21 | $this->FontFamily = ''; |
| 20 | 22 | // Check page size and orientation |
| 21 | - if($orientation=='') |
|
| 22 | - $orientation = $this->DefOrientation; |
|
| 23 | - else |
|
| 24 | - $orientation = strtoupper($orientation[0]); |
|
| 25 | - if($size=='') |
|
| 26 | - $size = $this->DefPageSize; |
|
| 27 | - else |
|
| 28 | - $size = $this->_getpagesize($size); |
|
| 23 | + if($orientation=='') { |
|
| 24 | + $orientation = $this->DefOrientation; |
|
| 25 | + } else { |
|
| 26 | + $orientation = strtoupper($orientation[0]); |
|
| 27 | + } |
|
| 28 | + if($size=='') { |
|
| 29 | + $size = $this->DefPageSize; |
|
| 30 | + } else { |
|
| 31 | + $size = $this->_getpagesize($size); |
|
| 32 | + } |
|
| 29 | 33 | if($orientation!=$this->CurOrientation || $size[0]!=$this->CurPageSize[0] || $size[1]!=$this->CurPageSize[1]) |
| 30 | 34 | { |
| 31 | 35 | // New size or orientation |
@@ -33,8 +37,7 @@ discard block |
||
| 33 | 37 | { |
| 34 | 38 | $this->w = $size[0]; |
| 35 | 39 | $this->h = $size[1]; |
| 36 | - } |
|
| 37 | - else |
|
| 40 | + } else |
|
| 38 | 41 | { |
| 39 | 42 | $this->w = $size[1]; |
| 40 | 43 | $this->h = $size[0]; |
@@ -45,9 +48,10 @@ discard block |
||
| 45 | 48 | $this->CurOrientation = $orientation; |
| 46 | 49 | $this->CurPageSize = $size; |
| 47 | 50 | } |
| 48 | - if($orientation!=$this->DefOrientation || $size[0]!=$this->DefPageSize[0] || $size[1]!=$this->DefPageSize[1]) |
|
| 49 | - $this->PageSizes[$this->page] = array($this->wPt, $this->hPt); |
|
| 50 | -} |
|
| 51 | + if($orientation!=$this->DefOrientation || $size[0]!=$this->DefPageSize[0] || $size[1]!=$this->DefPageSize[1]) { |
|
| 52 | + $this->PageSizes[$this->page] = array($this->wPt, $this->hPt); |
|
| 53 | + } |
|
| 54 | + } |
|
| 51 | 55 | |
| 52 | 56 | function Footer() { |
| 53 | 57 | // Check if Footer for this page already exists (do the same for Header()) |
@@ -82,19 +86,22 @@ discard block |
||
| 82 | 86 | $this->page = $currpage; |
| 83 | 87 | $this->SetXY($l,$h); |
| 84 | 88 | |
| 85 | - if($col == 5) |
|
| 86 | - $this->MultiCell($this->tablewidths[$col],$lineheight,$txt,0,"R"); |
|
| 87 | - else |
|
| 88 | - $this->MultiCell($this->tablewidths[$col],$lineheight,$txt); |
|
| 89 | + if($col == 5) { |
|
| 90 | + $this->MultiCell($this->tablewidths[$col],$lineheight,$txt,0,"R"); |
|
| 91 | + } else { |
|
| 92 | + $this->MultiCell($this->tablewidths[$col],$lineheight,$txt); |
|
| 93 | + } |
|
| 89 | 94 | $l += $this->tablewidths[$col]; |
| 90 | 95 | |
| 91 | - if(!isset($tmpheight[$row.'-'.$this->page])) |
|
| 92 | - $tmpheight[$row.'-'.$this->page] = 0; |
|
| 96 | + if(!isset($tmpheight[$row.'-'.$this->page])) { |
|
| 97 | + $tmpheight[$row.'-'.$this->page] = 0; |
|
| 98 | + } |
|
| 93 | 99 | if($tmpheight[$row.'-'.$this->page] < $this->GetY()) { |
| 94 | 100 | $tmpheight[$row.'-'.$this->page] = $this->GetY(); |
| 95 | 101 | } |
| 96 | - if($this->page > $maxpage) |
|
| 97 | - $maxpage = $this->page; |
|
| 102 | + if($this->page > $maxpage) { |
|
| 103 | + $maxpage = $this->page; |
|
| 104 | + } |
|
| 98 | 105 | } |
| 99 | 106 | |
| 100 | 107 | // get the height we were in the last used page |
@@ -142,30 +149,35 @@ discard block |
||
| 142 | 149 | foreach($datas AS $row => $data) { |
| 143 | 150 | $this->page = $currpage; |
| 144 | 151 | // write the horizontal borders |
| 145 | - if($data != "") |
|
| 146 | - $this->Line(100,$h,200,$h); |
|
| 152 | + if($data != "") { |
|
| 153 | + $this->Line(100,$h,200,$h); |
|
| 154 | + } |
|
| 147 | 155 | // write the content and remember the height of the highest col |
| 148 | 156 | foreach($data AS $col => $txt) { |
| 149 | 157 | $this->page = $currpage; |
| 150 | 158 | $this->SetXY($l,$h); |
| 151 | 159 | |
| 152 | - if($col == 3) |
|
| 153 | - $this->SetFont('Arial', 'B', 8); |
|
| 154 | - else |
|
| 155 | - $this->SetFont('Arial', '', 8); |
|
| 156 | - if($col == 5) |
|
| 157 | - $this->MultiCell($this->tablewidths[$col],$lineheight,$txt,0,"R"); |
|
| 158 | - else |
|
| 159 | - $this->MultiCell($this->tablewidths[$col],$lineheight,$txt); |
|
| 160 | + if($col == 3) { |
|
| 161 | + $this->SetFont('Arial', 'B', 8); |
|
| 162 | + } else { |
|
| 163 | + $this->SetFont('Arial', '', 8); |
|
| 164 | + } |
|
| 165 | + if($col == 5) { |
|
| 166 | + $this->MultiCell($this->tablewidths[$col],$lineheight,$txt,0,"R"); |
|
| 167 | + } else { |
|
| 168 | + $this->MultiCell($this->tablewidths[$col],$lineheight,$txt); |
|
| 169 | + } |
|
| 160 | 170 | $l += $this->tablewidths[$col]; |
| 161 | 171 | |
| 162 | - if(!isset($tmpheight[$row.'-'.$this->page])) |
|
| 163 | - $tmpheight[$row.'-'.$this->page] = 0; |
|
| 172 | + if(!isset($tmpheight[$row.'-'.$this->page])) { |
|
| 173 | + $tmpheight[$row.'-'.$this->page] = 0; |
|
| 174 | + } |
|
| 164 | 175 | if($tmpheight[$row.'-'.$this->page] < $this->GetY()) { |
| 165 | 176 | $tmpheight[$row.'-'.$this->page] = $this->GetY(); |
| 166 | 177 | } |
| 167 | - if($this->page > $maxpage) |
|
| 168 | - $maxpage = $this->page; |
|
| 178 | + if($this->page > $maxpage) { |
|
| 179 | + $maxpage = $this->page; |
|
| 180 | + } |
|
| 169 | 181 | } |
| 170 | 182 | |
| 171 | 183 | // get the height we were in the last used page |
@@ -224,19 +236,22 @@ discard block |
||
| 224 | 236 | $this->page = $currpage; |
| 225 | 237 | $this->SetXY($l,$h); |
| 226 | 238 | |
| 227 | - if($col == 5) |
|
| 228 | - $this->MultiCell($this->tablewidths[$col],$lineheight,$txt,0,"R"); |
|
| 229 | - else |
|
| 230 | - $this->MultiCell($this->tablewidths[$col],$lineheight,$txt); |
|
| 239 | + if($col == 5) { |
|
| 240 | + $this->MultiCell($this->tablewidths[$col],$lineheight,$txt,0,"R"); |
|
| 241 | + } else { |
|
| 242 | + $this->MultiCell($this->tablewidths[$col],$lineheight,$txt); |
|
| 243 | + } |
|
| 231 | 244 | $l += $this->tablewidths[$col]; |
| 232 | 245 | |
| 233 | - if(!isset($tmpheight[$row.'-'.$this->page])) |
|
| 234 | - $tmpheight[$row.'-'.$this->page] = 0; |
|
| 246 | + if(!isset($tmpheight[$row.'-'.$this->page])) { |
|
| 247 | + $tmpheight[$row.'-'.$this->page] = 0; |
|
| 248 | + } |
|
| 235 | 249 | if($tmpheight[$row.'-'.$this->page] < $this->GetY()) { |
| 236 | 250 | $tmpheight[$row.'-'.$this->page] = $this->GetY(); |
| 237 | 251 | } |
| 238 | - if($this->page > $maxpage) |
|
| 239 | - $maxpage = $this->page; |
|
| 252 | + if($this->page > $maxpage) { |
|
| 253 | + $maxpage = $this->page; |
|
| 254 | + } |
|
| 240 | 255 | } |
| 241 | 256 | |
| 242 | 257 | // get the height we were in the last used page |
@@ -443,14 +443,12 @@ discard block |
||
| 443 | 443 | // error |
| 444 | 444 | $this->errno = $code; |
| 445 | 445 | $this->errstr = htmlentities($fstr); |
| 446 | - } |
|
| 447 | - else if ( ! is_object($val)) |
|
| 446 | + } else if ( ! is_object($val)) |
|
| 448 | 447 | { |
| 449 | 448 | // programmer error, not an object |
| 450 | 449 | error_log("Invalid type '".gettype($val)."' (value: $val) passed to XML_RPC_Response. Defaulting to empty value."); |
| 451 | 450 | $this->val = new XML_RPC_Values(); |
| 452 | - } |
|
| 453 | - else |
|
| 451 | + } else |
|
| 454 | 452 | { |
| 455 | 453 | $this->val = $val; |
| 456 | 454 | } |
@@ -979,50 +977,42 @@ discard block |
||
| 979 | 977 | if ($name == 'STRING') |
| 980 | 978 | { |
| 981 | 979 | $this->xh[$the_parser]['value'] = $this->xh[$the_parser]['ac']; |
| 982 | - } |
|
| 983 | - elseif ($name == 'DATETIME.ISO8601') |
|
| 980 | + } elseif ($name == 'DATETIME.ISO8601') |
|
| 984 | 981 | { |
| 985 | 982 | $this->xh[$the_parser]['vt'] = $this->xmlrpcDateTime; |
| 986 | 983 | $this->xh[$the_parser]['value'] = $this->xh[$the_parser]['ac']; |
| 987 | - } |
|
| 988 | - elseif ($name == 'BASE64') |
|
| 984 | + } elseif ($name == 'BASE64') |
|
| 989 | 985 | { |
| 990 | 986 | $this->xh[$the_parser]['value'] = base64_decode($this->xh[$the_parser]['ac']); |
| 991 | - } |
|
| 992 | - elseif ($name == 'BOOLEAN') |
|
| 987 | + } elseif ($name == 'BOOLEAN') |
|
| 993 | 988 | { |
| 994 | 989 | // Translated BOOLEAN values to TRUE AND FALSE |
| 995 | 990 | if ($this->xh[$the_parser]['ac'] == '1') |
| 996 | 991 | { |
| 997 | 992 | $this->xh[$the_parser]['value'] = TRUE; |
| 998 | - } |
|
| 999 | - else |
|
| 993 | + } else |
|
| 1000 | 994 | { |
| 1001 | 995 | $this->xh[$the_parser]['value'] = FALSE; |
| 1002 | 996 | } |
| 1003 | - } |
|
| 1004 | - elseif ($name == 'DOUBLE') |
|
| 997 | + } elseif ($name == 'DOUBLE') |
|
| 1005 | 998 | { |
| 1006 | 999 | // we have a DOUBLE |
| 1007 | 1000 | // we must check that only 0123456789-.<space> are characters here |
| 1008 | 1001 | if ( ! preg_match('/^[+-]?[eE0-9\t \.]+$/', $this->xh[$the_parser]['ac'])) |
| 1009 | 1002 | { |
| 1010 | 1003 | $this->xh[$the_parser]['value'] = 'ERROR_NON_NUMERIC_FOUND'; |
| 1011 | - } |
|
| 1012 | - else |
|
| 1004 | + } else |
|
| 1013 | 1005 | { |
| 1014 | 1006 | $this->xh[$the_parser]['value'] = (double)$this->xh[$the_parser]['ac']; |
| 1015 | 1007 | } |
| 1016 | - } |
|
| 1017 | - else |
|
| 1008 | + } else |
|
| 1018 | 1009 | { |
| 1019 | 1010 | // we have an I4/INT |
| 1020 | 1011 | // we must check that only 0123456789-<space> are characters here |
| 1021 | 1012 | if ( ! preg_match('/^[+-]?[0-9\t ]+$/', $this->xh[$the_parser]['ac'])) |
| 1022 | 1013 | { |
| 1023 | 1014 | $this->xh[$the_parser]['value'] = 'ERROR_NON_NUMERIC_FOUND'; |
| 1024 | - } |
|
| 1025 | - else |
|
| 1015 | + } else |
|
| 1026 | 1016 | { |
| 1027 | 1017 | $this->xh[$the_parser]['value'] = (int)$this->xh[$the_parser]['ac']; |
| 1028 | 1018 | } |
@@ -1219,12 +1209,10 @@ discard block |
||
| 1219 | 1209 | if ($this->xmlrpcTypes[$type] == 1) |
| 1220 | 1210 | { |
| 1221 | 1211 | $this->addScalar($val, $type); |
| 1222 | - } |
|
| 1223 | - elseif ($this->xmlrpcTypes[$type] == 2) |
|
| 1212 | + } elseif ($this->xmlrpcTypes[$type] == 2) |
|
| 1224 | 1213 | { |
| 1225 | 1214 | $this->addArray($val); |
| 1226 | - } |
|
| 1227 | - elseif ($this->xmlrpcTypes[$type] == 3) |
|
| 1215 | + } elseif ($this->xmlrpcTypes[$type] == 3) |
|
| 1228 | 1216 | { |
| 1229 | 1217 | $this->addStruct($val); |
| 1230 | 1218 | } |
@@ -1121,8 +1121,7 @@ discard block |
||
| 1121 | 1121 | if ($escape === FALSE) |
| 1122 | 1122 | { |
| 1123 | 1123 | $this->ar_set[] = '('.implode(',', $row).')'; |
| 1124 | - } |
|
| 1125 | - else |
|
| 1124 | + } else |
|
| 1126 | 1125 | { |
| 1127 | 1126 | $clean = array(); |
| 1128 | 1127 | |
@@ -2132,8 +2131,9 @@ discard block |
||
| 2132 | 2131 | */ |
| 2133 | 2132 | function _insert_on_duplicate_update_batch($table, $keys, $values) |
| 2134 | 2133 | { |
| 2135 | - foreach($keys as $key) |
|
| 2136 | - $update_fields[] = $key.'=VALUES('.$key.')'; |
|
| 2134 | + foreach($keys as $key) { |
|
| 2135 | + $update_fields[] = $key.'=VALUES('.$key.')'; |
|
| 2136 | + } |
|
| 2137 | 2137 | |
| 2138 | 2138 | return "INSERT INTO ".$table." (".implode(', ', $keys).") VALUES ".implode(', ', $values)." ON DUPLICATE KEY UPDATE ".implode(', ', $update_fields); |
| 2139 | 2139 | } |
@@ -338,13 +338,15 @@ |
||
| 338 | 338 | */ |
| 339 | 339 | function count_all($table = '') |
| 340 | 340 | { |
| 341 | - if ($table == '') |
|
| 342 | - return '0'; |
|
| 341 | + if ($table == '') { |
|
| 342 | + return '0'; |
|
| 343 | + } |
|
| 343 | 344 | |
| 344 | 345 | $query = $this->query("SELECT COUNT(*) AS numrows FROM ".$this->dbprefix.$table); |
| 345 | 346 | |
| 346 | - if ($query->num_rows() == 0) |
|
| 347 | - return '0'; |
|
| 347 | + if ($query->num_rows() == 0) { |
|
| 348 | + return '0'; |
|
| 349 | + } |
|
| 348 | 350 | |
| 349 | 351 | $row = $query->row(); |
| 350 | 352 | $this->_reset_select(); |
@@ -338,20 +338,17 @@ |
||
| 338 | 338 | if ($table == NULL && $v >= '8.1') |
| 339 | 339 | { |
| 340 | 340 | $sql = 'SELECT LASTVAL() as ins_id'; |
| 341 | - } |
|
| 342 | - elseif ($table != NULL && $column != NULL && $v >= '8.0') |
|
| 341 | + } elseif ($table != NULL && $column != NULL && $v >= '8.0') |
|
| 343 | 342 | { |
| 344 | 343 | $sql = sprintf("SELECT pg_get_serial_sequence('%s','%s') as seq", $table, $column); |
| 345 | 344 | $query = $this->query($sql); |
| 346 | 345 | $row = $query->row(); |
| 347 | 346 | $sql = sprintf("SELECT CURRVAL('%s') as ins_id", $row->seq); |
| 348 | - } |
|
| 349 | - elseif ($table != NULL) |
|
| 347 | + } elseif ($table != NULL) |
|
| 350 | 348 | { |
| 351 | 349 | // seq_name passed in table parameter |
| 352 | 350 | $sql = sprintf("SELECT CURRVAL('%s') as ins_id", $table); |
| 353 | - } |
|
| 354 | - else |
|
| 351 | + } else |
|
| 355 | 352 | { |
| 356 | 353 | return pg_last_oid($this->result_id); |
| 357 | 354 | } |
@@ -42,8 +42,7 @@ |
||
| 42 | 42 | if ($this->conn_id) |
| 43 | 43 | { |
| 44 | 44 | return "SELECT '".$this->database."'"; |
| 45 | - } |
|
| 46 | - else |
|
| 45 | + } else |
|
| 47 | 46 | { |
| 48 | 47 | return FALSE; |
| 49 | 48 | } |