Zum Inhalt springen

Drupal 7 Update: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Simon Zeberli (Diskussion | Beiträge)
Die Seite wurde neu angelegt: „https://www.drupal.org/node/1709914 In Cormodul node.module zeitle: <syntaxhighlight lang="php"> function node_page_title($node) { return $node->title; </sy…“
 
Andreas (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
 
Zeile 1: Zeile 1:
Notice: Trying to get property of non-object in node_page_title() (Zeile 2200 von /var/www/schwabhsk/modules/node/node.module).
https://www.drupal.org/node/1709914
https://www.drupal.org/node/1709914



Aktuelle Version vom 31. März 2016, 14:04 Uhr

Notice: Trying to get property of non-object in node_page_title() (Zeile 2200 von /var/www/schwabhsk/modules/node/node.module). https://www.drupal.org/node/1709914

In Cormodul node.module zeitle:

function node_page_title($node) {
  return $node->title;

Ersetzen durch

function node_page_title($node) {
  if (is_numeric($node)) {
    $node = node_load($node);
  }
  return $node->title;
}