S
S
sssqqq2021-09-21 12:01:04
PHP
sssqqq, 2021-09-21 12:01:04

0 Call to a member function get() on null how to fix?

<?php if ($params->get('enable_tooltip', 0) === '1') : ?> breaks the site gives an error "0 Call to a member function get() on null" tell me how to overcome this ailment

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Rsa97, 2021-09-21
@Rsa97

Don't write null to $params.
Your K.O.

T
throughtheether, 2014-10-03
@valent_in_habrahabr

I guess the order is:
3 1 4 5 6 7 2
In particular, f1 (n)=n^0.3 < f4 (n)=n^0.5

A
Alexander Taratin, 2014-10-03
@Taraflex

Hammer the features into tungsten to compare graphs.
www.wolframalpha.com/input/?i=x+%3D+n%5E0.3%3B+x+%...

M
Mrrl, 2014-10-03
@Mrl

f4 is sqrt(n) or sqrt(5)? And it's different in different places.
If we assume that sqrt(n), then the function f1 is out of place in your answer. It grows much slower than you think.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question