Roland Häder
5bc2ebb267
Please use x() correctly:
...
<?php
if (x($someArray, 'element')) {
// Do something
}
?>
Signed-off-by: Roland Haeder <roland@mxchange.org>
5 years ago
Hypolite Petovan
7b352f3f74
Revert "Coding convention applied - part 1"
5 years ago
Roland Häder
0cd241bcbe
added spaces + some curly braces + some usage of dbm::is_result()
...
Signed-off-by: Roland Häder <roland@mxchange.org>
5 years ago
Michael
eb6a6228f7
more spaces
5 years ago
Michael
997e94555b
The old pager is removed
5 years ago
Michael
cec79ddf2b
See issue 3157: Fulltext is now disabled
5 years ago
Michael
ea18d1829f
Reformatted stuff, improved query
5 years ago
Michael
75097ebf37
Added limit
5 years ago
Hypolite Petovan
f92918f471
Normalize App parameter declaration (mod folder, 2 out of 3)
5 years ago
Roland Häder
9fad8109ff
changed to this:
...
---------------------
function bla (App &$a) {
$a->bla = 'stuff';
}
---------------------
Signed-off-by: Roland Häder <roland@mxchange.org>
5 years ago
Roland Häder
d6e57f0348
Continued with coding convention:
...
- added curly braces around conditional code blocks
- added space between if/foreach/... and brace
- rewrote a code block so if dbm::is_result() fails it will abort, else the id
is fetched from INSERT statement
- made some SQL keywords upper-cased and added back-ticks to columns/table names
Signed-off-by: Roland Haeder <roland@mxchange.org>
5 years ago
Roland Häder
52f14ffa5f
Continued with coding convention:
...
- added curly braces around conditional code blocks
- added space between if/foreach/... and brace
- rewrote a code block so if dbm::is_result() fails it will abort, else the id
is fetched from INSERT statement
- made some SQL keywords upper-cased and added back-ticks to columns/table names
Signed-off-by: Roland Haeder <roland@mxchange.org>
5 years ago
Roland Häder
6e44acfed6
Continued with coding convention:
...
- added curly braces around conditional code blocks
- added space between if/foreach/... and brace
- rewrote a code block so if dbm::is_result() fails it will abort, else the id
is fetched from INSERT statement
- made some SQL keywords upper-cased and added back-ticks to columns/table names
Signed-off-by: Roland Haeder <roland@mxchange.org>
5 years ago
Roland Häder
61c1317f80
added much more curly braces + space between "if" and brace
...
Signed-off-by: Roland Häder <roland@mxchange.org>
5 years ago
Roland Häder
ace8f753ac
added much more curly braces + space between "if" and brace
...
Signed-off-by: Roland Häder <roland@mxchange.org>
Conflicts:
mod/bookmarklet.php
mod/community.php
mod/contacts.php
mod/crepair.php
mod/events.php
mod/network.php
mod/suggest.php
mod/uexport.php
view/theme/duepuntozero/config.php
view/theme/frio/config.php
view/theme/quattro/config.php
view/theme/vier/config.php
5 years ago
Roland Häder
e24c3a5b82
added much more curly braces + space between "if" and brace
...
Signed-off-by: Roland Häder <roland@mxchange.org>
5 years ago
Roland Häder
4dce3d8224
changed to this:
...
---------------------
function bla (App &$a) {
$a->bla = 'stuff';
}
---------------------
Signed-off-by: Roland Häder <roland@mxchange.org>
5 years ago
Roland Häder
98b7270295
Coding convention applied:
...
- space between "if" and brace
- curly braces on conditional blocks
Signed-off-by: Roland Häder <roland@mxchange.org>
Conflicts:
include/lock.php
5 years ago
Roland Häder
e1f3661645
*much* more usage of App::get_baseurl() instead of $a->get_baseurl() (coding convention applied)
...
Signed-off-by: Roland Häder <roland@mxchange.org>
5 years ago
Roland Häder
abff6372dd
Coding convention applied:
...
- space between "if" and brace
- curly braces on conditional blocks
Signed-off-by: Roland Häder <roland@mxchange.org>
Conflicts:
include/lock.php
5 years ago
Roland Häder
fb676335db
Coding convention applied:
...
- space between "if" and brace
- curly braces on conditional blocks
Signed-off-by: Roland Häder <roland@mxchange.org>
5 years ago
Roland Häder
884f44ce94
*much* more usage of App::get_baseurl() instead of $a->get_baseurl() (coding convention applied)
...
Signed-off-by: Roland Häder <roland@mxchange.org>
5 years ago
Roland Häder
46d383369c
Cleanup for #3010 - added spaces, thanks to @annando .
...
Signed-off-by: Roland Häder <roland@mxchange.org>
6 years ago
Roland Häder
6a8a36f12d
More usage of dbm::is_result($r) instead of count($r):
...
- count() returns very different results and never a boolean (not even false on
error condition).
- therefore you should NOT use it in boolean expressions. This still *can* be
done in PHP because of its lazyness. But it is discouraged if it comes to
more clean code.
Signed-off-by: Roland Häder <roland@mxchange.org>
6 years ago
Michael
23a97465e5
Avoid SQL errors
6 years ago
Michael
3a76a6766f
Issue 2772: Pending contacts should now be displayed
6 years ago
Michael
3de862712d
Issue 2772: Posts from pending contacts should be displayed as well.
6 years ago
Michael
7ad4a8ca93
The warning if a group contains members of several network types can now be supressed.
6 years ago
Michael
68a31e084a
Bugfix: Filtering by group has always to be done with the contact id in the thread table
6 years ago
Michael Vogel
3e5cf5290e
Improved queries, more uncommitted queries
6 years ago
Michael Vogel
60a0235af0
The account type is now read and displayed
6 years ago
Roland Häder
e171a1cd22
Some fixes:
...
- avoids warning if no result is coming back
- brought back init variable before using it
Signed-off-by: Roland Haeder <roland@mxchange.org>
6 years ago
Michael Vogel
4961fb3a45
Unused indexes removed, queries changed
6 years ago
Michael Vogel
e4c6cfd2d8
Moves the function "is_result" from dba to dbm.
6 years ago
rabuzarus
cf696f6d1f
network.php - raw && update mode don't need the network tabs
6 years ago
Michael Vogel
51b5d16f1b
Improved SQL queries
6 years ago
Michael Vogel
e512a83ecc
Massively updated avatar handling
6 years ago
Michael Vogel
c05898c57d
The queries for items are unified (a little bit)
6 years ago
rabuzarus
e4ba493a01
Renamed "Search results for:" in "Results for:" to have more space on mobile
6 years ago
Roland Häder
3e701b90ac
Continued rewriting:
...
- use dba::is_result() everywhere (where I found the old, bad way)
- converted some spaces -> tabs for code
- converted some CRLF -> LF as mixures of both is not good
Signed-off-by: Roland Haeder <roland@mxchange.org>
6 years ago
Michael Vogel
c69aab6ee0
Avoid write operations if not needed
6 years ago
Michael Vogel
ca2454eeb4
Avoid write operations if not needed
6 years ago
Roland Häder
47b591c09a
Fixes another warning because of count()'s lazyness. #2390
...
Signed-off-by: Roland Haeder <roland@mxchange.org>
6 years ago
Michael Vogel
f7537c9e90
Remove the baseurl where possible to avoid mixed content
6 years ago
fabrixxm
b202e02fbf
Revert "Updated modules to allow for partial overrides without errors"
...
This reverts commit db949bb802
.
6 years ago
Andrej Stieben
db949bb802
Updated modules to allow for partial overrides without errors
...
Only define functions if they have not been defined before, e.g. in themes. This makes it possible to override parts of a module and still use the other functions.
6 years ago
rabuzarus
52dbb0b4a2
Forum class - rename Class CamelCase and rename some methods
6 years ago
rabuzarus
9a54afa629
Forum class - rename Class CamelCase and rename some methods
6 years ago
rabuzarus
c1070e4655
forums.php is now forum.php and providing class forum
6 years ago
Michael Vogel
b4631cebed
Fixed SQL problems
6 years ago