Installed the blog module and I got an error that I found a fix for on this forum.
Now I have this new error. How can I fix this?
[Notice] Array to string conversion
GET /fit/blog/?flush=1
Line 16 in /Users/gforce/Desktop/Repository/fit/sapphire/core/model/fieldtypes/Date.php
SOURCE
class Date extends DBField {
function setValue($value) {
if( is_array( $value ) && $value['Day'] && $value['Month'] && $value['Year'] ) {
$this->value = $value['Year'] . '-' . $value['Month'] . '-' . $value['Day'];
return;
}
// Default to NZ date format - strtotime expects a US date
if(ereg('^([0-9]+)/([0-9]+)/([0-9]+)$', $value, $parts))
$value = "$parts[2]/$parts[1]/$parts[3]";
if($value && is_string($value)) $this->value = date('Y-m-d', strtotime($value));
else $value = null;
}