- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
foreach ($project as $key => $value) {
if (!in_array($key, array('homepage'))) {
if (isset($_POST['project'][$key])) {
if (in_array($key, array('cast', 'client', 'related'))) {
$project->$key = $this->typograf($_POST['project'][$key]);
} else {
$project->$key = $_POST['project'][$key];
}
}
} elseif ($key == 'homepage') {
$project->$key = isset($_POST['project'][$key]) ? 1 : 0;
}
}
Nemoden 25.01.2012 05:59 # 0
RaZeR 29.01.2012 17:47 # +1
Lure Of Chaos 29.01.2012 21:46 # 0