Every time when I run http://analytics.mysite.com/index.php?module=MultiSites&action=index&idSite=1&period=day&date=today, I found a lot of errors in my log file (see one example in the attachment). I was trying to debug the code (all errors are related to lines 78 - 83 in plugins/MultiSites/Controller.php), but don't have the time luxury, so please help me understand this issue and potentially solve it.
what version of Piwik are you using?
What about your PHP version? I have E_STRICT (2048) here, and I'm not seeing those error messages.
What if you change array_shift() to reset() ?
or current() ?
(In ) fixes #1904 - worksforme (must be php version specific); modify code to use a temporary variable