simplenews | anmeldeblock | patch
Undefined property: stdClass::$uid dans simplenews_subscriber_defaults() (ligne 1484 of ... /sites/all/modules/simplenews/simplenews.module).
Folgender Patch scheint das Problem zu beheben:
--- sites/all/modules/simplenews/simplenews.module 2011-01-25 13:36:51.000000000 +0100
+++ sites/all/modules/simplenews/simplenews_new.module 2011-02-03 20:13:28.409414947 +0100
@@ -1480,7 +1480,7 @@ function simplenews_subscriber_defaults(
$subscriber->tids = array();
$subscriber->newsletter_subscription = array();
- if ($account) {
+ if (isset($account->uid)) {
$subscriber->uid = $account->uid ?
$account->uid : NULL; $subscriber->mail = $account->mail ?
$account->mail : NULL; $subscriber->language = user_preferred_language($account)->language;
Quelle: http://drupal.org/files/issues/1038894_simplenews-module__the_phi_2011-02-03T20-20.patch
- Neuen Kommentar schreiben
- 137 Aufrufe
Comments :
dito
Verfasst von admin am 25. Februar 2011 - 2:42.Auch die geänderte Fassung 7.x-1.x-dev vom 24. Febr. 2011 braucht diese Code-Änderung.
(Fehler gemeldet).