PHP practice

array-content.
pull/63/head
Noud de Brouwer 2013-01-14 16:32:09 +00:00
parent 89845933a4
commit 804a0cf0f6
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,8 @@ class AttributesController extends AppController {
$fails = ""; // will be used to keep a list of the lines that failed or succeeded
$successes = "";
// TODO loop-holes,
// the value null value thing
foreach ($attributes as $key => $attribute) {
$attribute = trim($attribute);
if (strlen($attribute) == 0)