Notice: Undefined offset: 0 en __lambda_func() (línea 8 de C:\xampp\htdocs\p...

Contribution Date
Technology
Contribution Project
Contribution Details

Notice: Undefined offset: 0 en __lambda_func() (línea 8 de C:\xampp\htdocs\pfhealth73\sites\default\modules\updated\views_php\plugins\views\views_php_handler_field.inc(207) : runtime-created function).
Notice: Trying to get property of non-object en __lambda_func() (línea 8 de C:\xampp\htdocs\pfhealth73\sites\default\modules\updated\views_php\plugins\views\views_php_handler_field.inc(207) : runtime-created function).

I think one of my view is using the views php.

I have added the code in the output code field of the view, in the field Global php

This is the code in the output-code field of view :

global $language; global $user; $objeto = db_query("SELECT * FROM course_outline_fulfillment WHERE coid = :coid AND uid = :uid", array(':coid' => $row->coid, ':uid' => $user->uid)); $objeto = $objeto->fetchAll(); $path = '/' . $language->language . '/node/' . $row->nid . '/course-object/' . $row->coid; /*if(isset($objeto[0])) {*/ if($objeto[0]->complete == 1) { $object = db_query("SELECT * FROM course_outline WHERE coid = :coid", array(':coid' => $row->coid)); $object = $object->fetchAll(); print '<img typeof="foaf:Image" class="img-responsive" src="/misc/watchdog-ok.png" alt=""><a href="' . $path . '">' . $row->title_1 . '</a>'; } /*}*/ else { $siguiente = db_query("SELECT * FROM course_report WHERE coid = :coid AND uid = :uid", array(':coid' => $row->coid, ':uid' => $user->uid)); $siguiente = $siguiente ->fetchAll(); if(count($siguiente) > 0) { print '<img typeof="foaf:Image" class="img-responsive" src="/misc/menu-collapsed.png" alt=""><a href="' . $path . '">' . $row->title_1 . '</a>'; } else { print '<a>' . $row->title_1 . '</a>'; } }

Please help me out, I am working on this since last week ?

Contribution Author
Files count
0
Patches count
0