Completed
Branch develop (b66a18)
by
unknown
14:24
created
htdocs/webhook/target_card.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'targetcard'; // To manage different context of search
94 94
 $backtopage = GETPOST('backtopage', 'alpha');
95 95
 $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');
96
-$lineid   = GETPOST('lineid', 'int');
96
+$lineid = GETPOST('lineid', 'int');
97 97
 
98 98
 // Initialize technical objects
99 99
 $object = new Target($db);
Please login to merge, or discard this patch.
Braces   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,8 +95,12 @@  discard block
 block discarded – undo
95 95
 //if ($user->socid > 0) $socid = $user->socid;
96 96
 //$isdraft = (isset($object->status) && ($object->status == $object::STATUS_DRAFT) ? 1 : 0);
97 97
 //restrictedArea($user, $object->element, $object->id, $object->table_element, '', 'fk_soc', 'rowid', $isdraft);
98
-if (empty($conf->webhook->enabled)) accessforbidden();
99
-if (!$permissiontoread) accessforbidden();
98
+if (empty($conf->webhook->enabled)) {
99
+	accessforbidden();
100
+}
101
+if (!$permissiontoread) {
102
+	accessforbidden();
103
+}
100 104
 
101 105
 
102 106
 /*
@@ -433,8 +437,9 @@  discard block
 block discarded – undo
433 437
 				if ($reshook < 0) {
434 438
 					setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
435 439
 				}
436
-				if (empty($reshook))
437
-					$object->formAddObjectLine(1, $mysoc, $soc);
440
+				if (empty($reshook)) {
441
+									$object->formAddObjectLine(1, $mysoc, $soc);
442
+				}
438 443
 			}
439 444
 		}
440 445
 
Please login to merge, or discard this patch.
htdocs/website/class/website.class.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1079,8 +1079,8 @@  discard block
 block discarded – undo
1079 1079
 			$stringtoexport = str_replace('file=js/'.$website->ref.'/', "file=js/__WEBSITE_KEY__/", $stringtoexport);
1080 1080
 			$stringtoexport = str_replace('medias/image/'.$website->ref.'/', "medias/image/__WEBSITE_KEY__/", $stringtoexport);
1081 1081
 			$stringtoexport = str_replace('medias/js/'.$website->ref.'/', "medias/js/__WEBSITE_KEY__/", $stringtoexport);
1082
-			$stringtoexport = str_replace('"image/'.$website->ref.'/', '"image/__WEBSITE_KEY__/', $stringtoexport);	// When we have a link src="image/websiteref/file.png" into html content
1083
-			$stringtoexport = str_replace('"/image/'.$website->ref.'/', '"/image/__WEBSITE_KEY__/', $stringtoexport);	// When we have a link src="/image/websiteref/file.png" into html content
1082
+			$stringtoexport = str_replace('"image/'.$website->ref.'/', '"image/__WEBSITE_KEY__/', $stringtoexport); // When we have a link src="image/websiteref/file.png" into html content
1083
+			$stringtoexport = str_replace('"/image/'.$website->ref.'/', '"/image/__WEBSITE_KEY__/', $stringtoexport); // When we have a link src="/image/websiteref/file.png" into html content
1084 1084
 			$stringtoexport = str_replace('"js/'.$website->ref.'/', '"js/__WEBSITE_KEY__/', $stringtoexport);
1085 1085
 			$stringtoexport = str_replace('"/js/'.$website->ref.'/', '"/js/__WEBSITE_KEY__/', $stringtoexport);
1086 1086
 
@@ -1351,7 +1351,7 @@  discard block
 block discarded – undo
1351 1351
 				foreach ($aliasesarray as $aliasshortcuttocreate) {
1352 1352
 					if (trim($aliasshortcuttocreate)) {
1353 1353
 						$filealias = $conf->website->dir_output.'/'.$object->ref.'/'.trim($aliasshortcuttocreate).'.php';
1354
-						$result = dolSavePageAlias($filealias, $object, $objectpagestatic);	// This includes also a copy into sublanguage directories.
1354
+						$result = dolSavePageAlias($filealias, $object, $objectpagestatic); // This includes also a copy into sublanguage directories.
1355 1355
 						if (!$result) {
1356 1356
 							$this->errors[] = 'Failed to write file '.basename($filealias);
1357 1357
 							$error++;
@@ -1372,7 +1372,7 @@  discard block
 block discarded – undo
1372 1372
 				$filetpl = $pathofwebsite.'/page'.$object->fk_default_home.'.tpl.php';
1373 1373
 			}
1374 1374
 			$filewrapper = $pathofwebsite.'/wrapper.php';
1375
-			dolSaveIndexPage($pathofwebsite, $fileindex, $filetpl, $filewrapper, $object);	// This includes also a version of index.php into sublanguage directories
1375
+			dolSaveIndexPage($pathofwebsite, $fileindex, $filetpl, $filewrapper, $object); // This includes also a version of index.php into sublanguage directories
1376 1376
 		}
1377 1377
 
1378 1378
 		if ($error) {
Please login to merge, or discard this patch.
htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 		$maxfilesizearray = getMaxFileSizeArray();
184 184
 		$maxmin = $maxfilesizearray['maxmin'];
185 185
 		if ($maxmin > 0) {
186
-			$texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
186
+			$texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
187 187
 		}
188 188
 		$texte .= ' <input type="file" name="uploadfile">';
189 189
 		$texte .= '<input type="hidden" value="FACTURE_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 				$newfiletmp = preg_replace('/template_/i', '', $newfiletmp);
279 279
 				$newfiletmp = preg_replace('/modele_/i', '', $newfiletmp);
280 280
 
281
-				$newfiletmp = $objectref . '_' . $newfiletmp;
281
+				$newfiletmp = $objectref.'_'.$newfiletmp;
282 282
 
283 283
 				// Get extension (ods or odt)
284 284
 				$newfileformat = substr($newfile, strrpos($newfile, '.') + 1);
@@ -287,11 +287,11 @@  discard block
 block discarded – undo
287 287
 					if ($format == '1') {
288 288
 						$format = '%Y%m%d%H%M%S';
289 289
 					}
290
-					$filename = $newfiletmp . '-' . dol_print_date(dol_now(), $format) . '.' . $newfileformat;
290
+					$filename = $newfiletmp.'-'.dol_print_date(dol_now(), $format).'.'.$newfileformat;
291 291
 				} else {
292
-					$filename = $newfiletmp . '.' . $newfileformat;
292
+					$filename = $newfiletmp.'.'.$newfileformat;
293 293
 				}
294
-				$file = $dir . '/' . $filename;
294
+				$file = $dir.'/'.$filename;
295 295
 				//$file=$dir.'/'.$newfiletmp.'.'.dol_print_date(dol_now(),'%Y%m%d%H%M%S').'.odt';
296 296
 				//print "newdir=".$dir;
297 297
 				//print "newfile=".$newfile;
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 				dol_mkdir($conf->facture->dir_temp);
302 302
 				if (!is_writable($conf->facture->dir_temp)) {
303 303
 					$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->facture->dir_temp);
304
-					dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
304
+					dol_syslog('Error in write_file: '.$this->error, LOG_ERR);
305 305
 					return -1;
306 306
 				}
307 307
 
@@ -388,10 +388,10 @@  discard block
 block discarded – undo
388 388
 				}
389 389
 
390 390
 				// Define substitution array
391
-				$substitutionarray = getCommonSubstitutionArray($outputlangs, 0, null, $object);	// Set tags __...__
391
+				$substitutionarray = getCommonSubstitutionArray($outputlangs, 0, null, $object); // Set tags __...__
392 392
 				$array_object_from_properties = $this->get_substitutionarray_each_var_object($object, $outputlangs);
393
-				$array_objet = $this->get_substitutionarray_object($object, $outputlangs);			// Set tags object_...
394
-				$array_user = $this->get_substitutionarray_user($user, $outputlangs);				// Set tags myuser_...
393
+				$array_objet = $this->get_substitutionarray_object($object, $outputlangs); // Set tags object_...
394
+				$array_user = $this->get_substitutionarray_user($user, $outputlangs); // Set tags myuser_...
395 395
 				$array_soc = $this->get_substitutionarray_mysoc($mysoc, $outputlangs);
396 396
 				$array_thirdparty = $this->get_substitutionarray_thirdparty($socobject, $outputlangs);
397 397
 				$array_propal = is_object($propal_object) ? $this->get_substitutionarray_object($propal_object, $outputlangs, 'propal') : array();
Please login to merge, or discard this patch.
htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 		$maxfilesizearray = getMaxFileSizeArray();
182 182
 		$maxmin = $maxfilesizearray['maxmin'];
183 183
 		if ($maxmin > 0) {
184
-			$texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
184
+			$texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
185 185
 		}
186 186
 		$texte .= ' <input type="file" name="uploadfile">';
187 187
 		$texte .= '<input type="hidden" value="PRODUCT_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 				$newfiletmp = preg_replace('/template_/i', '', $newfiletmp);
279 279
 				$newfiletmp = preg_replace('/modele_/i', '', $newfiletmp);
280 280
 
281
-				$newfiletmp = $objectref . '_' . $newfiletmp;
281
+				$newfiletmp = $objectref.'_'.$newfiletmp;
282 282
 
283 283
 				// Get extension (ods or odt)
284 284
 				$newfileformat = substr($newfile, strrpos($newfile, '.') + 1);
@@ -287,11 +287,11 @@  discard block
 block discarded – undo
287 287
 					if ($format == '1') {
288 288
 						$format = '%Y%m%d%H%M%S';
289 289
 					}
290
-					$filename = $newfiletmp . '-' . dol_print_date(dol_now(), $format) . '.' . $newfileformat;
290
+					$filename = $newfiletmp.'-'.dol_print_date(dol_now(), $format).'.'.$newfileformat;
291 291
 				} else {
292
-					$filename = $newfiletmp . '.' . $newfileformat;
292
+					$filename = $newfiletmp.'.'.$newfileformat;
293 293
 				}
294
-				$file = $dir . '/' . $filename;
294
+				$file = $dir.'/'.$filename;
295 295
 				//print "newdir=".$dir;
296 296
 				//print "newfile=".$newfile;
297 297
 				//print "file=".$file;
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 				dol_mkdir($conf->product->dir_temp);
301 301
 				if (!is_writable($conf->product->dir_temp)) {
302 302
 					$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->product->dir_temp);
303
-					dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
303
+					dol_syslog('Error in write_file: '.$this->error, LOG_ERR);
304 304
 					return -1;
305 305
 				}
306 306
 
Please login to merge, or discard this patch.
modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
 				$newfiletmp = preg_replace('/template_/i', '', $newfiletmp);
298 298
 				$newfiletmp = preg_replace('/modele_/i', '', $newfiletmp);
299 299
 
300
-				$newfiletmp = $objectref . '_' . $newfiletmp;
300
+				$newfiletmp = $objectref.'_'.$newfiletmp;
301 301
 
302 302
 				// Get extension (ods or odt)
303 303
 				$newfileformat = substr($newfile, strrpos($newfile, '.') + 1);
@@ -306,11 +306,11 @@  discard block
 block discarded – undo
306 306
 					if ($format == '1') {
307 307
 						$format = '%Y%m%d%H%M%S';
308 308
 					}
309
-					$filename = $newfiletmp . '-' . dol_print_date(dol_now(), $format) . '.' . $newfileformat;
309
+					$filename = $newfiletmp.'-'.dol_print_date(dol_now(), $format).'.'.$newfileformat;
310 310
 				} else {
311
-					$filename = $newfiletmp . '.' . $newfileformat;
311
+					$filename = $newfiletmp.'.'.$newfileformat;
312 312
 				}
313
-				$file = $dir . '/' . $filename;
313
+				$file = $dir.'/'.$filename;
314 314
 				//print "newdir=".$dir;
315 315
 				//print "newfile=".$newfile;
316 316
 				//print "file=".$file;
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 				dol_mkdir($conf->supplier_proposal->dir_temp);
320 320
 				if (!is_writable($conf->supplier_proposal->dir_temp)) {
321 321
 					$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->supplier_proposal->dir_temp);
322
-					dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
322
+					dol_syslog('Error in write_file: '.$this->error, LOG_ERR);
323 323
 					return -1;
324 324
 				}
325 325
 
Please login to merge, or discard this patch.
htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 		$maxfilesizearray = getMaxFileSizeArray();
217 217
 		$maxmin = $maxfilesizearray['maxmin'];
218 218
 		if ($maxmin > 0) {
219
-			$texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
219
+			$texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
220 220
 		}
221 221
 		$texte .= ' <input type="file" name="uploadfile">';
222 222
 		$texte .= '<input type="hidden" value="PROPALE_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 				$newfiletmp = preg_replace('/template_/i', '', $newfiletmp);
312 312
 				$newfiletmp = preg_replace('/modele_/i', '', $newfiletmp);
313 313
 
314
-				$newfiletmp = $objectref . '_' . $newfiletmp;
314
+				$newfiletmp = $objectref.'_'.$newfiletmp;
315 315
 
316 316
 				// Get extension (ods or odt)
317 317
 				$newfileformat = substr($newfile, strrpos($newfile, '.') + 1);
@@ -320,11 +320,11 @@  discard block
 block discarded – undo
320 320
 					if ($format == '1') {
321 321
 						$format = '%Y%m%d%H%M%S';
322 322
 					}
323
-					$filename = $newfiletmp . '-' . dol_print_date(dol_now(), $format) . '.' . $newfileformat;
323
+					$filename = $newfiletmp.'-'.dol_print_date(dol_now(), $format).'.'.$newfileformat;
324 324
 				} else {
325
-					$filename = $newfiletmp . '.' . $newfileformat;
325
+					$filename = $newfiletmp.'.'.$newfileformat;
326 326
 				}
327
-				$file = $dir . '/' . $filename;
327
+				$file = $dir.'/'.$filename;
328 328
 				//print "newdir=".$dir;
329 329
 				//print "newfile=".$newfile;
330 330
 				//print "file=".$file;
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 				dol_mkdir($conf->propal->multidir_temp[$object->entity]);
334 334
 				if (!is_writable($conf->propal->dir_temp)) {
335 335
 					$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->propal->dir_temp);
336
-					dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
336
+					dol_syslog('Error in write_file: '.$this->error, LOG_ERR);
337 337
 					return -1;
338 338
 				}
339 339
 
Please login to merge, or discard this patch.
htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 				$newfiletmp = preg_replace('/template_/i', '', $newfiletmp);
282 282
 				$newfiletmp = preg_replace('/modele_/i', '', $newfiletmp);
283 283
 
284
-				$newfiletmp = $objectref . '_' . $newfiletmp;
284
+				$newfiletmp = $objectref.'_'.$newfiletmp;
285 285
 
286 286
 				// Get extension (ods or odt)
287 287
 				$newfileformat = substr($newfile, strrpos($newfile, '.') + 1);
@@ -290,11 +290,11 @@  discard block
 block discarded – undo
290 290
 					if ($format == '1') {
291 291
 						$format = '%Y%m%d%H%M%S';
292 292
 					}
293
-					$filename = $newfiletmp . '-' . dol_print_date(dol_now(), $format) . '.' . $newfileformat;
293
+					$filename = $newfiletmp.'-'.dol_print_date(dol_now(), $format).'.'.$newfileformat;
294 294
 				} else {
295
-					$filename = $newfiletmp . '.' . $newfileformat;
295
+					$filename = $newfiletmp.'.'.$newfileformat;
296 296
 				}
297
-				$file = $dir . '/' . $filename;
297
+				$file = $dir.'/'.$filename;
298 298
 				//print "newdir=".$dir;
299 299
 				//print "newfile=".$newfile;
300 300
 				//print "file=".$file;
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 				dol_mkdir($conf->user->dir_temp);
304 304
 				if (!is_writable($conf->user->dir_temp)) {
305 305
 					$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->user->dir_temp);
306
-					dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
306
+					dol_syslog('Error in write_file: '.$this->error, LOG_ERR);
307 307
 					return -1;
308 308
 				}
309 309
 
Please login to merge, or discard this patch.
htdocs/core/modules/member/doc/doc_generic_member_odt.class.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 		$maxfilesizearray = getMaxFileSizeArray();
174 174
 		$maxmin = $maxfilesizearray['maxmin'];
175 175
 		if ($maxmin > 0) {
176
-			$texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
176
+			$texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
177 177
 		}
178 178
 		$texte .= ' <input type="file" name="uploadfile">';
179 179
 		$texte .= '<input type="hidden" value="MEMBER_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 				$newfiletmp = preg_replace('/template_/i', '', $newfiletmp);
269 269
 				$newfiletmp = preg_replace('/modele_/i', '', $newfiletmp);
270 270
 
271
-				$newfiletmp = $objectref . '_' . $newfiletmp;
271
+				$newfiletmp = $objectref.'_'.$newfiletmp;
272 272
 
273 273
 				// Get extension (ods or odt)
274 274
 				$newfileformat = substr($newfile, strrpos($newfile, '.') + 1);
@@ -277,11 +277,11 @@  discard block
 block discarded – undo
277 277
 					if ($format == '1') {
278 278
 						$format = '%Y%m%d%H%M%S';
279 279
 					}
280
-					$filename = $newfiletmp . '-' . dol_print_date(dol_now(), $format) . '.' . $newfileformat;
280
+					$filename = $newfiletmp.'-'.dol_print_date(dol_now(), $format).'.'.$newfileformat;
281 281
 				} else {
282
-					$filename = $newfiletmp . '.' . $newfileformat;
282
+					$filename = $newfiletmp.'.'.$newfileformat;
283 283
 				}
284
-				$file = $dir . '/' . $filename;
284
+				$file = $dir.'/'.$filename;
285 285
 				//print "newdir=".$dir;
286 286
 				//print "newfile=".$newfile;
287 287
 				//print "file=".$file;
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 				dol_mkdir($conf->adherent->dir_temp);
291 291
 				if (!is_writable($conf->adherent->dir_temp)) {
292 292
 					$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->adherent->dir_temp);
293
-					dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
293
+					dol_syslog('Error in write_file: '.$this->error, LOG_ERR);
294 294
 					return -1;
295 295
 				}
296 296
 
Please login to merge, or discard this patch.
htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -517,9 +517,9 @@  discard block
 block discarded – undo
517 517
 				$newfiletmp = preg_replace('/\.(ods|odt)/i', '', $newfile);
518 518
 				$newfiletmp = preg_replace('/template_/i', '', $newfiletmp);
519 519
 				$newfiletmp = preg_replace('/modele_/i', '', $newfiletmp);
520
-				$newfiletmp = $objectref . '_' . $newfiletmp;
520
+				$newfiletmp = $objectref.'_'.$newfiletmp;
521 521
 				//$file=$dir.'/'.$newfiletmp.'.'.dol_print_date(dol_now(),'%Y%m%d%H%M%S').'.odt';
522
-				$file = $dir . '/' . $newfiletmp . '.odt';
522
+				$file = $dir.'/'.$newfiletmp.'.odt';
523 523
 				//print "newdir=".$dir;
524 524
 				//print "newfile=".$newfile;
525 525
 				//print "file=".$file;
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
 				dol_mkdir($conf->project->dir_temp);
529 529
 				if (!is_writable($conf->project->dir_temp)) {
530 530
 					$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->project->dir_temp);
531
-					dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
531
+					dol_syslog('Error in write_file: '.$this->error, LOG_ERR);
532 532
 					return -1;
533 533
 				}
534 534
 
Please login to merge, or discard this patch.