@@ -61,8 +61,9 @@ |
||
| 61 | 61 | $mysoc = $soc; |
| 62 | 62 | |
| 63 | 63 | /* Errors are caught in later tests. */ |
| 64 | - if ($socid <= 0) |
|
| 65 | - return; |
|
| 64 | + if ($socid <= 0) { |
|
| 65 | + return; |
|
| 66 | + } |
|
| 66 | 67 | } |
| 67 | 68 | |
| 68 | 69 | /** |
@@ -34,7 +34,10 @@ |
||
| 34 | 34 | throw new PclZipProxyException('PclZip class not loaded - PclZip library |
| 35 | 35 | is required for using PclZipProxy'); ; |
| 36 | 36 | } |
| 37 | - if ($forcedir) $this->tmpdir=preg_replace('|[//\/]$|','',$forcedir); // $this->tmpdir must not contains / at the end |
|
| 37 | + if ($forcedir) { |
|
| 38 | + $this->tmpdir=preg_replace('|[//\/]$|','',$forcedir); |
|
| 39 | + } |
|
| 40 | + // $this->tmpdir must not contains / at the end |
|
| 38 | 41 | } |
| 39 | 42 | |
| 40 | 43 | /** |
@@ -222,7 +222,9 @@ |
||
| 222 | 222 | $listofstatus = array(Propal::STATUS_DRAFT, Propal::STATUS_VALIDATED, Propal::STATUS_SIGNED, Propal::STATUS_NOTSIGNED, Propal::STATUS_BILLED); |
| 223 | 223 | |
| 224 | 224 | $propalstatic = new Propal($db); |
| 225 | - if ($user->socid > 0) $socid = $user->socid; |
|
| 225 | + if ($user->socid > 0) { |
|
| 226 | + $socid = $user->socid; |
|
| 227 | + } |
|
| 226 | 228 | $sql = "SELECT count(p.rowid) as nb, p.fk_statut as status"; |
| 227 | 229 | $sql .= " FROM ".MAIN_DB_PREFIX."societe as s"; |
| 228 | 230 | $sql .= ", ".MAIN_DB_PREFIX."propal as p"; |
@@ -240,7 +240,9 @@ |
||
| 240 | 240 | /* |
| 241 | 241 | * Statistics |
| 242 | 242 | */ |
| 243 | - if ($user->socid > 0) $socid = $user->socid; |
|
| 243 | + if ($user->socid > 0) { |
|
| 244 | + $socid = $user->socid; |
|
| 245 | + } |
|
| 244 | 246 | $sql = "SELECT count(c.rowid) as nb, c.fk_statut as status"; |
| 245 | 247 | $sql .= " FROM ".MAIN_DB_PREFIX."societe as s"; |
| 246 | 248 | $sql .= ", ".MAIN_DB_PREFIX."commande as c"; |